1. 01 5月, 2018 2 次提交
    • P
      net: bridge: Publish bridge accessor functions · 4d4fd361
      Petr Machata 提交于
      Add a couple new functions to allow querying FDB and vlan settings of a
      bridge.
      Signed-off-by: NPetr Machata <petrm@mellanox.com>
      Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
      Signed-off-by: NNikolay Aleksandrov <nikolay@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d4fd361
    • A
      ipv6: sr: extract the right key values for "seg6_make_flowlabel" · 6df93462
      Ahmed Abdelsalam 提交于
      The seg6_make_flowlabel() is used by seg6_do_srh_encap() to compute the
      flowlabel from a given skb. It relies on skb_get_hash() which eventually
      calls __skb_flow_dissect() to extract the flow_keys struct values from
      the skb.
      
      In case of IPv4 traffic, calling seg6_make_flowlabel() after skb_push(),
      skb_reset_network_header(), and skb_mac_header_rebuild() will results in
      flow_keys struct of all key values set to zero.
      
      This patch calls seg6_make_flowlabel() before resetting the headers of skb
      to get the right key values.
      
      Extracted Key values are based on the type inner packet as follows:
      1) IPv6 traffic: src_IP, dst_IP, L4 proto, and flowlabel of inner packet.
      2) IPv4 traffic: src_IP, dst_IP, L4 proto, src_port, and dst_port
      3) L2 traffic: depends on what kind of traffic carried into the L2
      frame. IPv6 and IPv4 traffic works as discussed 1) and 2)
      
      Here a hex_dump of struct flow_keys for IPv4 and IPv6 traffic
      10.100.1.100: 47302 > 30.0.0.2: 5001
      00000000: 14 00 02 00 00 00 00 00 08 00 11 00 00 00 00 00
      00000010: 00 00 00 00 00 00 00 00 13 89 b8 c6 1e 00 00 02
      00000020: 0a 64 01 64
      
      fc00:a1:a > b2::2
      00000000: 28 00 03 00 00 00 00 00 86 dd 11 00 99 f9 02 00
      00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 b2 00 00
      00000020: 00 00 00 00 00 00 00 00 00 00 00 02 fc 00 00 a1
      00000030: 00 00 00 00 00 00 00 00 00 00 00 0a
      Signed-off-by: NAhmed Abdelsalam <amsalam20@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6df93462
  2. 30 4月, 2018 35 次提交
  3. 29 4月, 2018 1 次提交
    • F
      net: phy: Fix modular PHYLIB build · 9e8d438e
      Florian Fainelli 提交于
      After commit c59530d0 ("net: Move PHY statistics code into PHY
      library helpers") we made net/core/ethtool.c reference symbols which are
      part of the library which can be modular. David introduced a temporary
      fix with 1ecd6e8a ("phy: Temporary build fix after phylib changes.")
      which would prevent such modularity.
      
      This is not desireable of course, so instead, just inline the functions
      into include/linux/phy.h to keep both options available.
      
      Fixes: c59530d0 ("net: Move PHY statistics code into PHY library helpers")
      Fixes: 1ecd6e8a ("phy: Temporary build fix after phylib changes.")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9e8d438e
  4. 28 4月, 2018 2 次提交