]> git.baikalelectronics.ru Git - kernel.git/commit
xgbe: switch to more generic VxLAN detection
authorJakub Kicinski <kuba@kernel.org>
Tue, 14 Jul 2020 19:18:21 +0000 (12:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jul 2020 00:04:27 +0000 (17:04 -0700)
commit5b94048563c4d15be08fee3fe597a33a0f1d67e6
tree0497d16786fc34121b57c902717c52eec82a55dc
parent8f6dffe9e8891359f99ddf784c02d48db9e5631b
xgbe: switch to more generic VxLAN detection

Instead of looping though the list of ports just check
if the geometry of the packet is correct for VxLAN.
HW most likely doesn't care about the exact port, anyway,
since only first port is actually offloaded, and this way
we won't have to maintain the port list at all.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c