diff options
author | Amritha Nambiar <amritha.nambiar@intel.com> | 2023-12-02 00:28:29 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-05 03:04:05 +0100 |
commit | bc877956272f0521fef107838555817112a450dc (patch) | |
tree | 30d5b30e8a2471910052c6254f1773e75d5e9388 /net/core/netdev-genl.c | |
parent | Merge branch 'bnxt_en-support-new-5760x-p7-devices' (diff) | |
download | linux-bc877956272f0521fef107838555817112a450dc.tar.xz linux-bc877956272f0521fef107838555817112a450dc.zip |
netdev-genl: spec: Extend netdev netlink spec in YAML for queue
Add support in netlink spec(netdev.yaml) for queue information.
Add code generated from the spec.
Note: The "queue-type" attribute takes values 0 and 1 for rx
and tx queue type respectively.
Signed-off-by: Amritha Nambiar <amritha.nambiar@intel.com>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
Link: https://lore.kernel.org/r/170147330963.5260.2576294626647300472.stgit@anambiarhost.jf.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/netdev-genl.c')
-rw-r--r-- | net/core/netdev-genl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/core/netdev-genl.c b/net/core/netdev-genl.c index 10f2124e9e23..35e2d692f651 100644 --- a/net/core/netdev-genl.c +++ b/net/core/netdev-genl.c @@ -140,6 +140,16 @@ int netdev_nl_dev_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb) return skb->len; } +int netdev_nl_queue_get_doit(struct sk_buff *skb, struct genl_info *info) +{ + return -EOPNOTSUPP; +} + +int netdev_nl_queue_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb) +{ + return -EOPNOTSUPP; +} + static int netdev_genl_netdevice_event(struct notifier_block *nb, unsigned long event, void *ptr) { |