On Mon, Apr 3, 2017 at 9:41 PM, Samudrala, Sridhar <sridhar.samudr...@intel.com> wrote: > On 3/30/2017 12:17 AM, Or Gerlitz wrote: >> On Thu, Mar 30, 2017, Sridhar Samudrala wrote:
>>> Port Representator netdevs are created for each PF and VF if the switch >>> mode is set to 'switchdev'. These netdevs can be used to control and >>> configure VFs and PFs when they are moved to a different namespace. >>> They enable exposing statistics, configure and monitor link state, mtu, >>> filters,fdb/vlan entries etc. >>> In switchdev mode, broadcasts from VFs are received by the PF and passed >>> to corresponding port representor netdev. >> What netdev represents the uplink (wire port) in your impl? combining your replies from the two emails: > We don't have a port netdev representing the uplink in this implementation as > we > cannot control the frames going out the uplink via sw rules with the current > generation of hw/fw. > fwd to CPU as default rule is not possible with the current generation of > hw/fw. > So we would like to enable switchdev to expose the port representors and start > adding offloads in an incremental way. I lost you even deeper I was asking on frames getting in from the uplink and not getting out the uplink. This is about offloading to HW a switching model where the steering (matching and actions) comes into play on the port ingress. E.g VF NIC xmit ---> VF vport e-switch rep recv --> SW or HW steering other node xmit --> UPLINK vport e-switch rep recv --> SW or HW steering If your current HW can't let you have "send to CPU" as the default action on ingress for the VFs and uplink ports, I am not clear what use-cases you can do in slow path (only reps, no offloaded SW rules) and for past path (reps + offloaded SW rules)... Can you please elaborate on such use-cases, so the bigger picture is more clear? Or.