mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
drivers/net/can/dev.cb552766c87
("can: dev: prevent potential information leak in can_fill_info()")3e77f70e73
("can: dev: move driver related infrastructure into separate subdir")0a042c6ec9
("can: dev: move netlink related code into seperate file") Code move. drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c57ac4a31c4
("net/mlx5e: Correctly handle changing the number of queues when the interface is down")214baf2287
("net/mlx5e: Support HTB offload") Adjacent code changes net/switchdev/switchdev.c20776b465c
("net: switchdev: don't set port_obj_info->handled true when -EOPNOTSUPP")ffb68fc58e
("net: switchdev: remove the transaction structure from port object notifiers")bae33f2b5a
("net: switchdev: remove the transaction structure from port attributes") Transaction parameter gets dropped otherwise keep the fix. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
c358f95205
463 changed files with 3966 additions and 2259 deletions
|
@ -388,9 +388,10 @@ static int __switchdev_handle_port_obj_add(struct net_device *dev,
|
|||
extack = switchdev_notifier_info_to_extack(&port_obj_info->info);
|
||||
|
||||
if (check_cb(dev)) {
|
||||
/* This flag is only checked if the return value is success. */
|
||||
port_obj_info->handled = true;
|
||||
return add_cb(dev, port_obj_info->obj, extack);
|
||||
err = add_cb(dev, port_obj_info->obj, extack);
|
||||
if (err != -EOPNOTSUPP)
|
||||
port_obj_info->handled = true;
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Switch ports might be stacked under e.g. a LAG. Ignore the
|
||||
|
@ -441,9 +442,10 @@ static int __switchdev_handle_port_obj_del(struct net_device *dev,
|
|||
int err = -EOPNOTSUPP;
|
||||
|
||||
if (check_cb(dev)) {
|
||||
/* This flag is only checked if the return value is success. */
|
||||
port_obj_info->handled = true;
|
||||
return del_cb(dev, port_obj_info->obj);
|
||||
err = del_cb(dev, port_obj_info->obj);
|
||||
if (err != -EOPNOTSUPP)
|
||||
port_obj_info->handled = true;
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Switch ports might be stacked under e.g. a LAG. Ignore the
|
||||
|
@ -493,8 +495,10 @@ static int __switchdev_handle_port_attr_set(struct net_device *dev,
|
|||
int err = -EOPNOTSUPP;
|
||||
|
||||
if (check_cb(dev)) {
|
||||
port_attr_info->handled = true;
|
||||
return set_cb(dev, port_attr_info->attr);
|
||||
err = set_cb(dev, port_attr_info->attr);
|
||||
if (err != -EOPNOTSUPP)
|
||||
port_attr_info->handled = true;
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Switch ports might be stacked under e.g. a LAG. Ignore the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue