diff options
| author | 2020-09-18 21:11:02 +0200 | |
|---|---|---|
| committer | 2020-09-18 18:17:45 -0700 | |
| commit | d4602a9f47196dd62deba66ec361b5897f1ae62b (patch) | |
| tree | c3720df389760898ab277b698d76040cfc25a28c /net/core/devlink.c | |
| parent | net: devlink: regions: Add a priv member to the regions ops struct (diff) | |
| download | linux-rng-d4602a9f47196dd62deba66ec361b5897f1ae62b.tar.xz linux-rng-d4602a9f47196dd62deba66ec361b5897f1ae62b.zip | |
net: devlink: region: Pass the region ops to the snapshot function
Pass the region to be snapshotted to the function performing the
snapshot. This allows one function to operate on numerous regions.
v4:
Add missing kerneldoc for ICE
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
| -rw-r--r-- | net/core/devlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index d5844761a177..045468390480 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -4347,7 +4347,7 @@ devlink_nl_cmd_region_new(struct sk_buff *skb, struct genl_info *info) } } - err = region->ops->snapshot(devlink, info->extack, &data); + err = region->ops->snapshot(devlink, region->ops, info->extack, &data); if (err) goto err_snapshot_capture; |
