• Jakub Kicinski's avatar
    udp_tunnel: add the ability to share port tables · 74cc6d18
    Jakub Kicinski authored
    Unfortunately recent Intel NIC designs share the UDP port table
    across netdevs. So far the UDP tunnel port state was maintained
    per netdev, we need to extend that to cater to Intel NICs.
    
    Expect NICs to allocate the info structure dynamically and link
    to the state from there. All the shared NICs will record port
    offload information in the one instance of the table so we need
    to make sure that the use count can accommodate larger numbers.
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    74cc6d18
udp_tunnel_nic.c 24.2 KB