diff options
author | Petr Machata <petrm@mellanox.com> | 2018-11-22 23:29:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-23 18:02:24 -0800 |
commit | bb896805611fae33a67edb20820147b8a9ca68a5 (patch) | |
tree | 732a4d351de3fba5acd147e702e78955969f249b /samples | |
parent | 2b239f678079fd8423c3cd7c5b804abadd2fe898 (diff) | |
download | linux-stable-bb896805611fae33a67edb20820147b8a9ca68a5.tar.gz linux-stable-bb896805611fae33a67edb20820147b8a9ca68a5.tar.bz2 linux-stable-bb896805611fae33a67edb20820147b8a9ca68a5.zip |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions