]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bnxt_en: Add GRO logic for BCM5731X chips.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 13 Jun 2016 06:25:35 +0000 (02:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jun 2016 23:16:13 +0000 (19:16 -0400)
commit94758f8de037cf5c62eb56287f5d5e937cda8c9b
tree1c60f88a0936664c504e19fda04bfe71441e1e76
parent309369c9b3f6a8665e581d9014f222b602f6845a
bnxt_en: Add GRO logic for BCM5731X chips.

Add bnxt_gro_func_5731x() to handle GRO packets for this chip.  The
completion structures used in the new chip have new data to help determine
the header offsets.  The offsets can be off by 4 if the packet is an
internal loopback packet (e.g. from one VF to another VF).  Some additional
logic is added to adjust the offsets if it is a loopback packet.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h