]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: fdb filter_dev is always NULL for self (device), so remove check
authorScott Feldman <sfeldma@gmail.com>
Wed, 17 Jun 2015 23:08:31 +0000 (16:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 07:58:27 +0000 (00:58 -0700)
commit978ce35c45d2fcd8a312b7732f84e65b30ccfc83
tree40a498494b91fd1aa4365700318166e262126543
parentd3fbddbf7719c45d2a354fb109ced6a54c28a8c4
switchdev: fdb filter_dev is always NULL for self (device), so remove check

Remove the filter_dev check when dumping fdb entries, otherwise dump
returns empty list.  filter_dev is always passed as NULL when dumping fdbs
on SELF.  We want the fdbs installed on the device to be listed in the
dump.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Fixes: 6fd659d1 ("switchdev: add support for fdb add/del/dump via switchdev_port_obj ops")
Acked-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/switchdev/switchdev.c