diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2021-08-26 04:49:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-26 11:46:20 +0200 |
commit | 723783d077e39c256a1fafebbd97cbb14207c28f (patch) | |
tree | 3385e5cf51680f84111b24f6f411aa01f0db1bc2 /include/net/sock.h | |
parent | octeontx2-pf: cn10k: Fix error return code in otx2_set_flowkey_cfg() (diff) | |
download | linux-723783d077e39c256a1fafebbd97cbb14207c28f.tar.xz linux-723783d077e39c256a1fafebbd97cbb14207c28f.zip |
sock: remove one redundant SKB_FRAG_PAGE_ORDER macro
Both SKB_FRAG_PAGE_ORDER are defined to the same value in
net/core/sock.c and drivers/vhost/net.c.
Move the SKB_FRAG_PAGE_ORDER definition to net/core/sock.h,
as both net/core/sock.c and drivers/vhost/net.c include it,
and it seems a reasonable file to put the macro.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 95b25777b53e..66a9a90f9558 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2717,6 +2717,7 @@ extern int sysctl_optmem_max; extern __u32 sysctl_wmem_default; extern __u32 sysctl_rmem_default; +#define SKB_FRAG_PAGE_ORDER get_order(32768) DECLARE_STATIC_KEY_FALSE(net_high_order_alloc_disable_key); static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) |