diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-07-14 12:18:23 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-14 17:04:27 -0700 |
commit | 085c5c42e3654eb24c0f6fc6dc703f76fff1e6ce (patch) | |
tree | 56951e735c0158b700e51f19ffd3475c5c195576 /drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
parent | 4df587ab87b0b09f4873964f71020cf5c12ea878 (diff) | |
download | linux-085c5c42e3654eb24c0f6fc6dc703f76fff1e6ce.tar.gz linux-085c5c42e3654eb24c0f6fc6dc703f76fff1e6ce.tar.bz2 linux-085c5c42e3654eb24c0f6fc6dc703f76fff1e6ce.zip |
bnx2x: convert to new udp_tunnel_nic infra
Fairly straightforward conversion - no need to keep track
of the use count, and replay when ports get removed, also
callbacks can just sleep.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h index dee61d96680e..d04994840b87 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h @@ -1287,7 +1287,6 @@ enum sp_rtnl_flag { BNX2X_SP_RTNL_HYPERVISOR_VLAN, BNX2X_SP_RTNL_TX_STOP, BNX2X_SP_RTNL_GET_DRV_VERSION, - BNX2X_SP_RTNL_CHANGE_UDP_PORT, BNX2X_SP_RTNL_UPDATE_SVID, }; @@ -1343,11 +1342,6 @@ enum bnx2x_udp_port_type { BNX2X_UDP_PORT_MAX, }; -struct bnx2x_udp_tunnel { - u16 dst_port; - u8 count; -}; - struct bnx2x { /* Fields used in the tx and intr/napi performance paths * are grouped together in the beginning of the structure @@ -1855,7 +1849,7 @@ struct bnx2x { bool accept_any_vlan; /* Vxlan/Geneve related information */ - struct bnx2x_udp_tunnel udp_tunnel_ports[BNX2X_UDP_PORT_MAX]; + u16 udp_tunnel_ports[BNX2X_UDP_PORT_MAX]; }; /* Tx queues may be less or equal to Rx queues */ |