summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_vlan.c
diff options
context:
space:
mode:
authorVivien Didelot2015-09-29 18:07:16 +0200
committerDavid S. Miller2015-09-30 06:31:59 +0200
commit25f07adc473f05f850efc9414b9da3374563015f (patch)
treeff62d9a8e9c63c48abd034b61156c55c6437a36e /net/bridge/br_vlan.c
parentnet: switchdev: remove dev from switchdev_obj cb (diff)
downloadkernel-qcow2-linux-25f07adc473f05f850efc9414b9da3374563015f.tar.gz
kernel-qcow2-linux-25f07adc473f05f850efc9414b9da3374563015f.tar.xz
kernel-qcow2-linux-25f07adc473f05f850efc9414b9da3374563015f.zip
net: switchdev: pass callback to dump operation
Similar to the notifier_call callback of a notifier_block, change the function signature of switchdev dump operation to: int switchdev_port_obj_dump(struct net_device *dev, enum switchdev_obj_id id, void *obj, int (*cb)(void *obj)); This allows the caller to pass and expect back a specific switchdev_obj_* structure instead of the generic switchdev_obj one. Drivers implementation of dump operation can now expect this specific structure and call the callback with it. Drivers have been changed accordingly. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_vlan.c')
0 files changed, 0 insertions, 0 deletions