1. 18 3月, 2020 11 次提交
  2. 17 3月, 2020 3 次提交
    • J
      sfc: fix XDP-redirect in this driver · 86e85bf6
      Jesper Dangaard Brouer 提交于
      XDP-redirect is broken in this driver sfc. XDP_REDIRECT requires
      tailroom for skb_shared_info when creating an SKB based on the
      redirected xdp_frame (both in cpumap and veth).
      
      The fix requires some initial explaining. The driver uses RX page-split
      when possible. It reserves the top 64 bytes in the RX-page for storing
      dma_addr (struct efx_rx_page_state). It also have the XDP recommended
      headroom of XDP_PACKET_HEADROOM (256 bytes). As it doesn't reserve any
      tailroom, it can still fit two standard MTU (1500) frames into one page.
      
      The sizeof struct skb_shared_info in 320 bytes. Thus drivers like ixgbe
      and i40e, reduce their XDP headroom to 192 bytes, which allows them to
      fit two frames with max 1536 bytes into a 4K page (192+1536+320=2048).
      
      The fix is to reduce this drivers headroom to 128 bytes and add the 320
      bytes tailroom. This account for reserved top 64 bytes in the page, and
      still fit two frame in a page for normal MTUs.
      
      We must never go below 128 bytes of headroom for XDP, as one cacheline
      is for xdp_frame area and next cacheline is reserved for metadata area.
      
      Fixes: eb9a36be ("sfc: perform XDP processing on received packets")
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Acked-by: NEdward Cree <ecree@solarflare.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86e85bf6
    • A
      remoteproc: clean up notification config · 5e0ef51b
      Alex Elder 提交于
      Rearrange the config files for remoteproc and IPA to fix their
      interdependencies.
      
      First, have CONFIG_QCOM_Q6V5_MSS select QCOM_Q6V5_IPA_NOTIFY so the
      notification code is built regardless of whether IPA needs it.
      
      Next, represent QCOM_IPA as being dependent on QCOM_Q6V5_MSS rather
      than setting its value to match QCOM_Q6V5_COMMON (which is selected
      by QCOM_Q6V5_MSS).
      
      Drop all dependencies from QCOM_Q6V5_IPA_NOTIFY.  The notification
      code will be built whenever QCOM_Q6V5_MSS is set, and it has no other
      dependencies.
      Signed-off-by: NAlex Elder <elder@linaro.org>
      Reviewed-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5e0ef51b
    • Z
      qede: remove some unused code in function qede_selftest_receive_traffic · 10ee4b87
      Zheng Zengkai 提交于
      Remove set but not used variables 'sw_comp_cons' and 'hw_comp_cons'
      to fix gcc '-Wunused-but-set-variable' warning:
      
      drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function qede_selftest_receive_traffic:
      drivers/net/ethernet/qlogic/qede/qede_ethtool.c:1569:20:
       warning: variable sw_comp_cons set but not used [-Wunused-but-set-variable]
      drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function qede_selftest_receive_traffic:
      drivers/net/ethernet/qlogic/qede/qede_ethtool.c:1569:6:
       warning: variable hw_comp_cons set but not used [-Wunused-but-set-variable]
      
      After removing 'hw_comp_cons',the memory barrier 'rmb()' and its comments become useless,
      so remove them as well.
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      10ee4b87
  3. 16 3月, 2020 11 次提交
  4. 15 3月, 2020 15 次提交