]> git.itanic.dy.fi Git - linux-stable/commit
xsk: make struct xsk_cb_desc available outside CONFIG_XDP_SOCKETS
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 19 Dec 2023 11:02:05 +0000 (13:02 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jan 2024 23:27:35 +0000 (15:27 -0800)
commit8dc4c410006531ddad981ca9578f83cb93860819
tree3056708a72bb02640b761f9f9b4daa3d44d19fee
parent3e64db35bc37edbe9e37aaa987df92cde12ddb6c
xsk: make struct xsk_cb_desc available outside CONFIG_XDP_SOCKETS

The ice driver fails to build when CONFIG_XDP_SOCKETS is disabled.

drivers/net/ethernet/intel/ice/ice_base.c:533:21: error:
variable has incomplete type 'struct xsk_cb_desc'
        struct xsk_cb_desc desc = {};
                           ^
include/net/xsk_buff_pool.h:15:8: note:
forward declaration of 'struct xsk_cb_desc'
struct xsk_cb_desc;
       ^

Fixes: d68d707dcbbf ("ice: Support XDP hints in AF_XDP ZC mode")
Closes: https://lore.kernel.org/netdev/8b76dad3-8847-475b-aa17-613c9c978f7a@infradead.org/
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Larysa Zaremba <larysa.zaremba@intel.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20231219110205.1289506-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/xdp_sock_drv.h