15 May, 2015

1 commit


24 Mar, 2015

1 commit

  • make it same as the netdev_switch_port_bridge_setlink/dellink
    api (ie traverse lowerdevs to get to the switch port).

    removes "WARN_ON(!ops->ndo_switch_parent_id_get)" because
    direct bridge ports can be stacked netdevices (like bonds
    and team of switch ports) which may not implement this ndo.

    v2 to v3:
    - remove changes to bond and team. Bring back the
    transparently following lowerdevs like i initially
    had for setlink/getlink
    (http://www.spinics.net/lists/netdev/msg313436.html)
    dave and scott feldman also seem to prefer it be that
    way and move to non-transparent way of doing things
    if we see a problem down the lane.

    v3 to v4:
    - fix ret initialization

    v4 to v5:
    - return err on first failure (scott feldman)

    v5 to v6:
    - change variable name (err) and initialize to
    -EOPNOTSUPP (scott feldman).

    Signed-off-by: Roopa Prabhu
    Acked-by: Scott Feldman
    Acked-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Roopa Prabhu
     

16 Mar, 2015

1 commit

  • Move swdev wrappers over to new swdev ops (from previous ndo ops). No
    functional changes to the implementation.

    Signed-off-by: Scott Feldman

    rocker: move to new swdev ops

    Signed-off-by: Scott Feldman

    dsa: move to new swdev ops

    Signed-off-by: Scott Feldman
    Signed-off-by: David S. Miller

    Scott Feldman
     

12 Mar, 2015

1 commit


10 Mar, 2015

2 commits


07 Mar, 2015

1 commit


06 Mar, 2015

4 commits

  • Call into the switchdev driver any time an IPv4 fib entry is
    added/modified/deleted from the kernel's FIB. The switchdev driver may or
    may not install the route to the offload device. In the case where the
    driver tries to install the route and something goes wrong (device's routing
    table is full, etc), then all of the offloaded routes will be flushed from the
    device, route forwarding falls back to the kernel, and no more routes are
    offloading.

    We can refine this logic later. For now, use the simplist model of offloading
    routes up to the point of failure, and then on failure, undo everything and
    mark IPv4 offloading disabled.

    Signed-off-by: Scott Feldman
    Signed-off-by: David S. Miller

    Scott Feldman
     
  • Flesh out ndo wrappers to call into device driver. To call into device driver,
    the wrapper must interate over route's nexthops to ensure all nexthop devs
    belong to the same switch device. Currently, there is no support for route's
    nexthops spanning offloaded and non-offloaded devices, or spanning ports of
    multiple offload devices.

    Since switch device ports may be stacked under virtual interfaces (bonds and/or
    bridges), and the route's nexthop may be on the virtual interface, the wrapper
    will traverse the nexthop dev down to the base dev. It's the base dev that's
    passed to the switchdev driver's ndo ops.

    Signed-off-by: Scott Feldman
    Signed-off-by: David S. Miller

    Scott Feldman
     
  • Keep switchdev FIB offload model simple for now and don't allow custom ip
    rules.

    Signed-off-by: Scott Feldman
    Signed-off-by: David S. Miller

    Scott Feldman
     
  • Add IPv4 fib ndo wrapper funcs and stub them out for now.

    Signed-off-by: Scott Feldman
    Signed-off-by: David S. Miller

    Scott Feldman
     

20 Feb, 2015

1 commit

  • Pull kconfig updates from Michal Marek:
    "Yann E Morin was supposed to take over kconfig maintainership, but
    this hasn't happened. So I'm sending a few kconfig patches that I
    collected:

    - Fix for missing va_end in kconfig
    - merge_config.sh displays used if given too few arguments
    - s/boolean/bool/ in Kconfig files for consistency, with the plan to
    only support bool in the future"

    * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kconfig: use va_end to match corresponding va_start
    merge_config.sh: Display usage if given too few arguments
    kconfig: use bool instead of boolean for type definition attributes

    Linus Torvalds
     

02 Feb, 2015

1 commit

  • This patch adds two new api's netdev_switch_port_bridge_setlink
    and netdev_switch_port_bridge_dellink to offload bridge port attributes
    to switch port

    (The names of the apis look odd with 'switch_port_bridge',
    but am more inclined to change the prefix of the api to something else.
    Will take any suggestions).

    The api's look at the NETIF_F_HW_SWITCH_OFFLOAD feature flag to
    pass bridge port attributes to the port device.

    Signed-off-by: Roopa Prabhu
    Signed-off-by: David S. Miller

    Roopa Prabhu
     

18 Jan, 2015

1 commit

  • This patch introduces new notifier for purposes of exposing events which happen
    on switch driver side. The consumers of the event messages are mainly involved
    masters, namely bridge and ovs.

    Suggested-by: Thomas Graf
    Signed-off-by: Jiri Pirko
    Signed-off-by: Scott Feldman
    Signed-off-by: David S. Miller

    Jiri Pirko
     

07 Jan, 2015

1 commit


03 Dec, 2014

2 commits

  • To notify switch driver of change in STP state of bridge port, add new
    .ndo op and provide switchdev wrapper func to call ndo op. Use it in bridge
    code then.

    Signed-off-by: Scott Feldman
    Signed-off-by: Jiri Pirko
    Signed-off-by: Andy Gospodarek
    Acked-by: Thomas Graf
    Acked-by: Florian Fainelli
    Signed-off-by: David S. Miller

    Scott Feldman
     
  • The goal of this is to provide a possibility to support various switch
    chips. Drivers should implement relevant ndos to do so. Now there is
    only one ndo defined:
    - for getting physical switch id is in place.

    Note that user can use random port netdevice to access the switch.

    Signed-off-by: Jiri Pirko
    Reviewed-by: Thomas Graf
    Acked-by: Andy Gospodarek
    Signed-off-by: David S. Miller

    Jiri Pirko