1. 20 9月, 2016 12 次提交
  2. 19 9月, 2016 5 次提交
  3. 17 9月, 2016 3 次提交
  4. 16 9月, 2016 3 次提交
    • L
      cfg80211: add helper to find an IE that matches a byte-array · fbd05e4a
      Luca Coelho 提交于
      There are a few places where an IE that matches not only the EID, but
      also other bytes inside the element, needs to be found.  To simplify
      that and reduce the amount of similar code, implement a new helper
      function to match the EID and an extra array of bytes.
      
      Additionally, simplify cfg80211_find_vendor_ie() by using the new
      match function.
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      fbd05e4a
    • J
      net-next: dsa: add Qualcomm tag RX/TX handler · cafdc45c
      John Crispin 提交于
      Add support for the 2-bytes Qualcomm tag that gigabit switches such as
      the QCA8337/N might insert when receiving packets, or that we need
      to insert while targeting specific switch ports. The tag is inserted
      directly behind the ethernet header.
      Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
      Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NJohn Crispin <john@phrozen.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cafdc45c
    • J
      net_sched: Introduce skbmod action · 86da71b5
      Jamal Hadi Salim 提交于
      This action is intended to be an upgrade from a usability perspective
      from pedit (as well as operational debugability).
      Compare this:
      
      sudo tc filter add dev $ETH parent 1: protocol ip prio 10 \
      u32 match ip protocol 1 0xff flowid 1:2 \
      action pedit munge offset -14 u8 set 0x02 \
      munge offset -13 u8 set 0x15 \
      munge offset -12 u8 set 0x15 \
      munge offset -11 u8 set 0x15 \
      munge offset -10 u16 set 0x1515 \
      pipe
      
      to:
      
      sudo tc filter add dev $ETH parent 1: protocol ip prio 10 \
      u32 match ip protocol 1 0xff flowid 1:2 \
      action skbmod dmac 02:15:15:15:15:15
      
      Also try to do a MAC address swap with pedit or worse
      try to debug a policy with destination mac, source mac and
      etherype. Then make few rules out of those and you'll get my point.
      
      In the future common use cases on pedit can be migrated to this action
      (as an example different fields in ip v4/6, transports like tcp/udp/sctp
      etc). For this first cut, this allows modifying basic ethernet header.
      
      The most important ethernet use case at the moment is when redirecting or
      mirroring packets to a remote machine. The dst mac address needs a re-write
      so that it doesnt get dropped or confuse an interconnecting (learning) switch
      or dropped by a target machine (which looks at the dst mac). And at times
      when flipping back the packet a swap of the MAC addresses is needed.
      Signed-off-by: NJamal Hadi Salim <jhs@mojatatu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86da71b5
  5. 15 9月, 2016 2 次提交
  6. 12 9月, 2016 3 次提交
  7. 11 9月, 2016 12 次提交