1. 10 7月, 2016 2 次提交
  2. 08 7月, 2016 9 次提交
  3. 06 7月, 2016 12 次提交
  4. 05 7月, 2016 8 次提交
  5. 04 7月, 2016 5 次提交
  6. 03 7月, 2016 2 次提交
    • J
      netfilter: Convert FWINV<[foo]> macros and uses to NF_INVF · c37a2dfa
      Joe Perches 提交于
      netfilter uses multiple FWINV #defines with identical form that hide a
      specific structure variable and dereference it with a invflags member.
      
      $ git grep "#define FWINV"
      include/linux/netfilter_bridge/ebtables.h:#define FWINV(bool,invflg) ((bool) ^ !!(info->invflags & invflg))
      net/bridge/netfilter/ebtables.c:#define FWINV2(bool, invflg) ((bool) ^ !!(e->invflags & invflg))
      net/ipv4/netfilter/arp_tables.c:#define FWINV(bool, invflg) ((bool) ^ !!(arpinfo->invflags & (invflg)))
      net/ipv4/netfilter/ip_tables.c:#define FWINV(bool, invflg) ((bool) ^ !!(ipinfo->invflags & (invflg)))
      net/ipv6/netfilter/ip6_tables.c:#define FWINV(bool, invflg) ((bool) ^ !!(ip6info->invflags & (invflg)))
      net/netfilter/xt_tcpudp.c:#define FWINVTCP(bool, invflg) ((bool) ^ !!(tcpinfo->invflags & (invflg)))
      
      Consolidate these macros into a single NF_INVF macro.
      
      Miscellanea:
      
      o Neaten the alignment around these uses
      o A few lines are > 80 columns for intelligibility
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      c37a2dfa
    • O
      net/devlink: Add E-Switch mode control · 08f4b591
      Or Gerlitz 提交于
      Add the commands to set and show the mode of SRIOV E-Switch, two modes
      are supported:
      
      * legacy: operating in the "old" L2 based mode (DMAC --> VF vport)
      
      * switchdev: the E-Switch is referred to as whitebox switch configured
      using standard tools such as tc, bridge, openvswitch etc. To allow
      working with the tools, for each VF, a VF representor netdevice is
      created by the E-Switch manager vendor device driver instance (e.g PF).
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      08f4b591
  7. 02 7月, 2016 2 次提交