summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmvnic.c
diff options
context:
space:
mode:
authorSomnath Kotur2019-08-17 23:04:52 +0200
committerDavid S. Miller2019-08-18 22:05:01 +0200
commit9bf46566e80fd94845527d01ebd888eb49313551 (patch)
tree0f6a84f04b0c9f236d5e7165b7065701c7fec3b6 /drivers/net/ethernet/ibm/ibmvnic.c
parentbnxt_en: Use correct src_fid to determine direction of the flow (diff)
downloadkernel-qcow2-linux-9bf46566e80fd94845527d01ebd888eb49313551.tar.gz
kernel-qcow2-linux-9bf46566e80fd94845527d01ebd888eb49313551.tar.xz
kernel-qcow2-linux-9bf46566e80fd94845527d01ebd888eb49313551.zip
bnxt_en: Fix to include flow direction in L2 key
FW expects the driver to provide unique flow reference handles for Tx or Rx flows. When a Tx flow and an Rx flow end up sharing a reference handle, flow offload does not seem to work. This could happen in the case of 2 flows having their L2 fields wildcarded but in different direction. Fix to incorporate the flow direction as part of the L2 key v2: Move the dir field to the end of the bnxt_tc_l2_key struct to fix the warning reported by kbuild test robot <lkp@intel.com>. There is existing code that initializes the structure using nested initializer and will warn with the new u8 field added to the beginning. The structure also packs nicer when this new u8 is added to the end of the structure [MChan]. Fixes: abd43a13525d ("bnxt_en: Support for 64-bit flow handle.") Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.c')
0 files changed, 0 insertions, 0 deletions