1. 27 4月, 2017 3 次提交
  2. 26 4月, 2017 4 次提交
    • J
      mac80211: rewrite monitor mode delivery logic · 127f60bf
      Johannes Berg 提交于
      The monitor mode delivery logic makes it hard to add any
      kind of filtering in an efficient way, because the monitor
      SKB is created first and then passed to all interfaces.
      
      Rewrite the logic to create the monitor SKB the first time
      it's actually needed, and then keep delivering it.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      127f60bf
    • V
      cfg80211: Fix dfs state propagation for non-DFS center channel · cd50ac0f
      Vasanthakumar Thiagarajan 提交于
      When part of a bigger bandwidth (160 MHz) channel falls in DFS
      channel range it is possible that the  center frequency may not
      necessarily be a radar channel. Remove the sanity check on channel
      flag for IEEE80211_CHAN_RADAR in regulatory_propagate_dfs_state(),
      this should fix the dfs state propagation for non-DFS center freq
      which has DFS channels in it's bandwidth, should also fix unnecessary
      WARN_ON() spam in regulatory_propagate_dfs_state().
      
      Fixes: 89766727 ("cfg80211: Share Channel DFS state across wiphys of same DFS domain")
      Reported-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NVasanthakumar Thiagarajan <vthiagar@qti.qualcomm.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      cd50ac0f
    • W
      drivers: net: xgene-v2: Fix error return code in xge_mdio_config() · 5e1fc7c5
      Wei Yongjun 提交于
      Fix to return error code -ENODEV from the no PHY found error
      handling case instead of 0, as done elsewhere in this function.
      Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5e1fc7c5
    • D
      net: Generic XDP · b5cdae32
      David S. Miller 提交于
      This provides a generic SKB based non-optimized XDP path which is used
      if either the driver lacks a specific XDP implementation, or the user
      requests it via a new IFLA_XDP_FLAGS value named XDP_FLAGS_SKB_MODE.
      
      It is arguable that perhaps I should have required something like
      this as part of the initial XDP feature merge.
      
      I believe this is critical for two reasons:
      
      1) Accessibility.  More people can play with XDP with less
         dependencies.  Yes I know we have XDP support in virtio_net, but
         that just creates another depedency for learning how to use this
         facility.
      
         I wrote this to make life easier for the XDP newbies.
      
      2) As a model for what the expected semantics are.  If there is a pure
         generic core implementation, it serves as a semantic example for
         driver folks adding XDP support.
      
      One thing I have not tried to address here is the issue of
      XDP_PACKET_HEADROOM, thanks to Daniel for spotting that.  It seems
      incredibly expensive to do a skb_cow(skb, XDP_PACKET_HEADROOM) or
      whatever even if the XDP program doesn't try to push headers at all.
      I think we really need the verifier to somehow propagate whether
      certain XDP helpers are used or not.
      
      v5:
       - Handle both negative and positive offset after running prog
       - Fix mac length in XDP_TX case (Alexei)
       - Use rcu_dereference_protected() in free_netdev (kbuild test robot)
      
      v4:
       - Fix MAC header adjustmnet before calling prog (David Ahern)
       - Disable LRO when generic XDP is installed (Michael Chan)
       - Bypass qdisc et al. on XDP_TX and record the event (Alexei)
       - Do not perform generic XDP on reinjected packets (DaveM)
      
      v3:
       - Make sure XDP program sees packet at MAC header, push back MAC
         header if we do XDP_TX.  (Alexei)
       - Elide GRO when generic XDP is in use.  (Alexei)
       - Add XDP_FLAG_SKB_MODE flag which the user can use to request generic
         XDP even if the driver has an XDP implementation.  (Alexei)
       - Report whether SKB mode is in use in rtnl_xdp_fill() via XDP_FLAGS
         attribute.  (Daniel)
      
      v2:
       - Add some "fall through" comments in switch statements based
         upon feedback from Andrew Lunn
       - Use RCU for generic xdp_prog, thanks to Johannes Berg.
      Tested-by: NAndy Gospodarek <andy@greyhouse.net>
      Tested-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Tested-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b5cdae32
  3. 25 4月, 2017 33 次提交