diff options
| author | Jakub Kicinski <[email protected]> | 2024-03-03 05:24:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-03-06 08:07:44 +0000 |
| commit | 0b11b1c5c320555483e8a94c44549db24c289987 (patch) | |
| tree | 06f96c349b2428380d00b98f1682dfe610ccd8d4 /net/core/page_pool_user.c | |
| parent | netlink: handle EMSGSIZE errors in the core (diff) | |
| download | kernel-0b11b1c5c320555483e8a94c44549db24c289987.tar.gz kernel-0b11b1c5c320555483e8a94c44549db24c289987.zip | |
netdev: let netlink core handle -EMSGSIZE errors
Previous change added -EMSGSIZE handling to af_netlink, we don't
have to hide these errors any longer.
Theoretically the error handling changes from:
if (err == -EMSGSIZE)
to
if (err == -EMSGSIZE && skb->len)
everywhere, but in practice it doesn't matter.
All messages fit into NLMSG_GOODSIZE, so overflow of an empty
skb cannot happen.
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/page_pool_user.c')
| -rw-r--r-- | net/core/page_pool_user.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/page_pool_user.c b/net/core/page_pool_user.c index ffe5244e5597..53ad96f71b63 100644 --- a/net/core/page_pool_user.c +++ b/net/core/page_pool_user.c @@ -102,8 +102,6 @@ netdev_nl_page_pool_get_dump(struct sk_buff *skb, struct netlink_callback *cb, mutex_unlock(&page_pools_lock); rtnl_unlock(); - if (skb->len && err == -EMSGSIZE) - return skb->len; return err; } |
