]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mlx4e: Do not attempt to offload VXLAN ports that are unrecognized
authorAlexander Duyck <aduyck@mirantis.com>
Wed, 15 Jun 2016 21:42:11 +0000 (14:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jun 2016 21:24:59 +0000 (14:24 -0700)
commita547224dceed4645139f7eff72ff51adb9938bcb
tree6f898c46120f489d7eb6073d70985df3a1122d24
parent17471c7ba5115ed724d624577b21c166d2194272
mlx4e: Do not attempt to offload VXLAN ports that are unrecognized

The mlx4e driver does not support more than one port for VXLAN offload.  As
such expecting the hardware to offload other ports is invalid since it
appears the parsing logic is used to perform Tx checksum and segmentation
offloads.  Use the vxlan_port number to determine in which cases we can
apply the offload and in which cases we can not.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c