1. 04 Mar, 2020 33 commits
  2. 03 Mar, 2020 7 commits
    • David S. Miller's avatar
      Merge branch 'devlink-virtual-port' · 0a303214
      David S. Miller authored
      Parav Pandit says:
      
      ====================
      devlink: Introduce devlink port flavour virtual
      
      Currently PCI PF and VF devlink devices register their ports as
      physical port in non-representors mode.
      
      Introduce a new port flavour as virtual so that virtual devices can
      register 'virtual' flavour to make it more clear to users.
      
      An example of one PCI PF and 2 PCI virtual functions, each having
      one devlink port.
      
      $ devlink port show
      pci/0000:06:00.0/1: type eth netdev ens2f0 flavour physical port 0
      pci/0000:06:00.2/1: type eth netdev ens2f2 flavour virtual port 0
      pci/0000:06:00.3/1: type eth netdev ens2f3 flavour virtual port 0
      
      Patch summary:
      Patch-1 Introduces new devlink port flavour 'virtual'.
      Patch-2 Uses new flavour to register PCI VF virtual ports.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0a303214
    • Parav Pandit's avatar
      net/mlx5e: Use devlink virtual flavour for VF devlink port · 162add8c
      Parav Pandit authored
      Use newly introduce 'virtual' port flavour for devlink
      port of PCI VF devlink device in non-representors mode.
      
      While at it, remove recently introduced empty lines at end of the file.
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      162add8c
    • Parav Pandit's avatar
      devlink: Introduce devlink port flavour virtual · acf1ee44
      Parav Pandit authored
      Currently mlx5 PCI PF and VF devlink devices register their ports as
      physical port in non-representors mode.
      
      Introduce a new port flavour as virtual so that virtual devices can
      register 'virtual' flavour to make it more clear to users.
      
      An example of one PCI PF and 2 PCI virtual functions, each having
      one devlink port.
      
      $ devlink port show
      pci/0000:06:00.0/1: type eth netdev ens2f0 flavour physical port 0
      pci/0000:06:00.2/1: type eth netdev ens2f2 flavour virtual port 0
      pci/0000:06:00.3/1: type eth netdev ens2f3 flavour virtual port 0
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
      Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      acf1ee44
    • Russell King's avatar
      doc: sfp-phylink: correct code indentation · c04d102b
      Russell King authored
      Using vim to edit the phylink documentation reveals some mistakes due
      to the "invisible" pythonesque white space indentation that can't be
      seen with other editors. Fix it.
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c04d102b
    • David S. Miller's avatar
      Merge branch 'act_ct-Software-offload-of-conntrack_in' · 630fe59e
      David S. Miller authored
      Paul Blakey says:
      
      ====================
      act_ct: Software offload of conntrack_in
      
      This series adds software offload of connections with an established
      ct state using the NF flow table offload infrastructure, so
      once such flows are offloaded, they will not pass through conntrack
      again, and instead act_ct will restore the conntrack info metadata
      on the skb to the state it had on the offload event - established.
      
      Act_ct maintains an FT instance per ct zone. Flow table entries
      are created, per ct connection, when connections enter an established
      state and deleted otherwise. Once an entry is created, the FT assumes
      ownership of the entry, and manages it's aging.
      
      On the datapath, first lookup the skb in the zone's FT before going
      into conntrack, and if a matching flow is found, restore the conntrack
      info metadata on the skb, and skip calling conntrack.
      
      Note that this patchset is part of the connection tracking offload feature.
      Hardware offload of connections with an established ct state series will follow
      this one.
      
      Changelog:
         v1->v2:
           Removed now unused netfilter patches
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      630fe59e
    • Paul Blakey's avatar
      net/sched: act_ct: Software offload of established flows · 46475bb2
      Paul Blakey authored
      Offload nf conntrack processing by looking up the 5-tuple in the
      zone's flow table.
      
      The nf conntrack module will process the packets until a connection is
      in established state. Once in established state, the ct state pointer
      (nf_conn) will be restored on the skb from a successful ft lookup.
      Signed-off-by: default avatarPaul Blakey <paulb@mellanox.com>
      Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      46475bb2
    • Paul Blakey's avatar
      net/sched: act_ct: Offload established connections to flow table · 64ff70b8
      Paul Blakey authored
      Add a ft entry when connections enter an established state and delete
      the connections when they leave the established state.
      
      The flow table assumes ownership of the connection. In the following
      patch act_ct will lookup the ct state from the FT. In future patches,
      drivers will register for callbacks for ft add/del events and will be
      able to use the information to offload the connections.
      
      Note that connection aging is managed by the FT.
      Signed-off-by: default avatarPaul Blakey <paulb@mellanox.com>
      Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      64ff70b8