diff options
| author | Petr Machata <[email protected]> | 2018-11-22 23:29:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-11-24 02:02:24 +0000 |
| commit | bb896805611fae33a67edb20820147b8a9ca68a5 (patch) | |
| tree | 732a4d351de3fba5acd147e702e78955969f249b /net/switchdev/switchdev.c | |
| parent | net: dsa: slave: Handle SWITCHDEV_PORT_OBJ_ADD/_DEL (diff) | |
| download | kernel-bb896805611fae33a67edb20820147b8a9ca68a5.tar.gz kernel-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 <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
