1. 15 4月, 2019 2 次提交
    • J
      net: hns3: fix VLAN offload handle for VLAN inserted by port · 44e626f7
      Jian Shen 提交于
      Currently, in TX direction, driver implements the TX VLAN offload
      by checking the VLAN header in skb, and filling it into TX descriptor.
      Usually it works well, but if enable inserting VLAN header based on
      port, it may conflict when out_tag field of TX descriptor is already
      used, and cause RAS error.
      
      In RX direction, hardware supports stripping max two VLAN headers.
      For vlan_tci in skb can only store one VLAN tag, when RX VLAN offload
      enabled, driver tells hardware to strip one VLAN header from RX
      packet; when RX VLAN offload disabled, driver tells hardware not to
      strip VLAN header from RX packet. Now if port based insert VLAN
      enabled, all RX packets will have the port based VLAN header. This
      header is useless for stack, driver needs to ask hardware to strip
      it. Unfortunately, hardware can't drop this VLAN header, and always
      fill it into RX descriptor, so driver has to identify and drop it.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      44e626f7
    • J
      net: hns3: modify VLAN initialization to be compatible with port based VLAN · 741fca16
      Jian Shen 提交于
      Our hardware supports inserting a specified VLAN header for each
      function when sending packets. User can enable it with command
      "ip link set <devname> vf  <vfid> vlan <vlan id>".
      For this VLAN header is inserted by hardware, not from stack,
      hardware also needs to strip it from received packets before
      sending to stack.  In this case, driver needs to tell
      hardware which VLAN to insert or strip.
      
      The current VLAN initialization doesn't allow inserting
      VLAN header by hardware, this patch modifies it, in order be
      compatible with VLAN inserted base on port.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      741fca16
  2. 09 4月, 2019 7 次提交
  3. 05 4月, 2019 3 次提交
  4. 28 3月, 2019 1 次提交
    • X
      net: hns3: fix compile error · 669efc76
      Xi Wang 提交于
      Currently, the rules for configuring search paths in Kbuild have
      changed, this will lead some erros when compiling hns3 with the
      following command:
      
      make O=DIR M=drivers/net/ethernet/hisilicon/hns3
      
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c:11:10:
      fatal error: hnae3.h: No such file or directory
      
      This patch fix it by adding $(srctree)/ prefix to the serach paths.
      Signed-off-by: NXi Wang <wangxi11@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      669efc76
  5. 21 3月, 2019 1 次提交
  6. 10 3月, 2019 1 次提交
  7. 25 2月, 2019 4 次提交
  8. 22 2月, 2019 9 次提交
  9. 18 2月, 2019 1 次提交
  10. 03 2月, 2019 9 次提交
  11. 02 2月, 2019 1 次提交
  12. 31 1月, 2019 1 次提交