switchdev: add netlink flags to IPv4 FIB add op
authorScott Feldman <sfeldma@gmail.com>
Mon, 9 Mar 2015 20:59:09 +0000 (13:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2015 03:56:52 +0000 (23:56 -0400)
commitf8f2147150de303e814c0452075d467734d3544b
tree96d28922f4b9d1643da9c50d0532652c3dc14167
parentbf0b211256be342e92d3ee5c5a1fb8d42f3928bb
switchdev: add netlink flags to IPv4 FIB add op

Pass in the netlink flags (NLM_F_*) into switchdev driver for IPv4 FIB add op
to allow driver to 1) optimize hardware updates, 2) handle ip route prepend
and append commands correctly.

Suggested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Suggested-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c
include/linux/netdevice.h
include/net/switchdev.h
net/ipv4/fib_trie.c
net/switchdev/switchdev.c