OSDN Git Service

staging: fsl-dpaa2: ethsw: Introduce ethsw_port_dev_check()
authorPetr Machata <petrm@mellanox.com>
Thu, 22 Nov 2018 23:29:18 +0000 (23:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 02:02:24 +0000 (18:02 -0800)
commitbb896805611fae33a67edb20820147b8a9ca68a5
tree732a4d351de3fba5acd147e702e78955969f249b
parent2b239f678079fd8423c3cd7c5b804abadd2fe898
staging: fsl-dpaa2: ethsw: Introduce ethsw_port_dev_check()

ethsw currently uses an open-coded comparison of netdev_ops to determine
whether whether a device represents a front panel port. Wrap this into a
named function to simplify reuse.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/fsl-dpaa2/ethsw/ethsw.c