diff options
| author | Juhee Kang <claudiajkang@gmail.com> | 2022-08-31 15:58:45 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-02 06:09:23 +0300 |
| commit | abbc79280abc5e57fc52a7671d1388f1f54c946f (patch) | |
| tree | 908ddf7577269ceb6103597565b0818e9c63cc6e /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 75aad41ac3cf3d8d1d2bdbcaf0f662402c1e6c02 (diff) | |
| download | linux-abbc79280abc5e57fc52a7671d1388f1f54c946f.tar.xz | |
net: rtnetlink: use netif_oper_up instead of open code
The open code is defined as a new helper function(netif_oper_up) on netdev.h,
the code is dev->operstate == IF_OPER_UP || dev->operstate == IF_OPER_UNKNOWN.
Thus, replace the open code to netif_oper_up. This patch doesn't change logic.
Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Link: https://lore.kernel.org/r/20220831125845.1333-1-claudiajkang@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
