mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
net: switchdev: propagate extack to port attributes
When a struct switchdev_attr is notified through switchdev, there is no way to report informational messages, unlike for struct switchdev_obj. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Nikolay Aleksandrov <nikolay@nvidia.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b0aae0bde2
commit
4c08c586ff
8 changed files with 24 additions and 11 deletions
|
@ -281,7 +281,8 @@ int switchdev_handle_port_attr_set(struct net_device *dev,
|
|||
struct switchdev_notifier_port_attr_info *port_attr_info,
|
||||
bool (*check_cb)(const struct net_device *dev),
|
||||
int (*set_cb)(struct net_device *dev,
|
||||
const struct switchdev_attr *attr));
|
||||
const struct switchdev_attr *attr,
|
||||
struct netlink_ext_ack *extack));
|
||||
#else
|
||||
|
||||
static inline void switchdev_deferred_process(void)
|
||||
|
@ -372,7 +373,8 @@ switchdev_handle_port_attr_set(struct net_device *dev,
|
|||
struct switchdev_notifier_port_attr_info *port_attr_info,
|
||||
bool (*check_cb)(const struct net_device *dev),
|
||||
int (*set_cb)(struct net_device *dev,
|
||||
const struct switchdev_attr *attr))
|
||||
const struct switchdev_attr *attr,
|
||||
struct netlink_ext_ack *extack))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue