lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20170526211624.23133-1-jsorensen@fb.com> Date: Fri, 26 May 2017 17:16:17 -0400 From: Jes Sorensen <jes.sorensen@...il.com> To: netdev@...r.kernel.org Cc: kernel-team@...com, saeedm@...lanox.com, ilant@...lanox.com, Jes Sorensen <jsorensen@...com> Subject: [PATCH 0/7] mlx5: Make eswitch_offloads a compile option Hi, This changes the code to allow for eswitch_offloads to be compile time option, reducing the size of the driver module for those who do not need it. The patches do it step by step by introducing stubs and then finally gets rid of all the #ifdefs once the code can compile and link without including eswitch_offloads.o Unlike the patches that were discussed on the list back in January, this does not try to remove eswitch support. It simply allows the offloads to be disabled. Cheers, Jes Jes Sorensen (7): mlx5: Allow support for eswitch offloads to be disabled mlx5: eswitch vlan functionality is only called if SRIOV_OFFLOADS is set mlx5: Disable {add,del}_offloaded_rule() code if eswitch offloads are disabled mlx5: Stub out eswitch offload vport functions mlx5: Stub out create_vport_rx_rule when eswitch_offloads disabled mlx5: Stub out sqs2vport functions mlx5: Do not build eswitch_offloads if CONFIG_MLX5_EN_ESWITCH_OFFLOADS is set drivers/net/ethernet/mellanox/mlx5/core/Kconfig | 10 +++ drivers/net/ethernet/mellanox/mlx5/core/Makefile | 4 +- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 80 +++++++++++++++++++++- .../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 1 + drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 +- 5 files changed, 94 insertions(+), 3 deletions(-) -- 2.9.4
Powered by blists - more mailing lists