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)
commitb5c5f8d06292e2dd9961c4b88fde9ae0ea458d97
tree0497d16786fc34121b57c902717c52eec82a55dc
parent8f0545d232ca4eb1449584c68725d02f03a1d1a9
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