* [PATCH] ksmbd: use netif_is_bridge_port
@ 2022-03-02 15:11 Tobias Klauser
2022-03-03 0:12 ` Namjae Jeon
0 siblings, 1 reply; 2+ messages in thread
From: Tobias Klauser @ 2022-03-02 15:11 UTC (permalink / raw)
To: Namjae Jeon, Sergey Senozhatsky, Steve French, Hyunchul Lee; +Cc: linux-cifs
Use netif_is_bridge_port defined in <linux/netdevice.h> instead of
open-coding it.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
fs/ksmbd/transport_tcp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ksmbd/transport_tcp.c b/fs/ksmbd/transport_tcp.c
index 82a1429bbe12..8fef9de787d3 100644
--- a/fs/ksmbd/transport_tcp.c
+++ b/fs/ksmbd/transport_tcp.c
@@ -476,7 +476,7 @@ static int ksmbd_netdev_event(struct notifier_block *nb, unsigned long event,
switch (event) {
case NETDEV_UP:
- if (netdev->priv_flags & IFF_BRIDGE_PORT)
+ if (netif_is_bridge_port(netdev))
return NOTIFY_OK;
list_for_each_entry(iface, &iface_list, entry) {
@@ -585,7 +585,7 @@ int ksmbd_tcp_set_interfaces(char *ifc_list, int ifc_list_sz)
rtnl_lock();
for_each_netdev(&init_net, netdev) {
- if (netdev->priv_flags & IFF_BRIDGE_PORT)
+ if (netif_is_bridge_port(netdev))
continue;
if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL)))
return -ENOMEM;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ksmbd: use netif_is_bridge_port
2022-03-02 15:11 [PATCH] ksmbd: use netif_is_bridge_port Tobias Klauser
@ 2022-03-03 0:12 ` Namjae Jeon
0 siblings, 0 replies; 2+ messages in thread
From: Namjae Jeon @ 2022-03-03 0:12 UTC (permalink / raw)
To: Tobias Klauser; +Cc: Sergey Senozhatsky, Steve French, Hyunchul Lee, linux-cifs
2022-03-03 0:11 GMT+09:00, Tobias Klauser <tklauser@distanz.ch>:
> Use netif_is_bridge_port defined in <linux/netdevice.h> instead of
> open-coding it.
>
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-03 0:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-02 15:11 [PATCH] ksmbd: use netif_is_bridge_port Tobias Klauser
2022-03-03 0:12 ` Namjae Jeon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.