aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2021-08-26 10:49:47 +0800
committerDavid S. Miller <davem@davemloft.net>2021-08-26 10:46:20 +0100
commit723783d077e39c256a1fafebbd97cbb14207c28f (patch)
tree3385e5cf51680f84111b24f6f411aa01f0db1bc2 /net/core/sock.c
parentocteontx2-pf: cn10k: Fix error return code in otx2_set_flowkey_cfg() (diff)
downloadlinux-dev-723783d077e39c256a1fafebbd97cbb14207c28f.tar.xz
linux-dev-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 'net/core/sock.c')
-rw-r--r--net/core/sock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 950f1e70dbf5..62627e868e03 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -2574,7 +2574,6 @@ static void sk_leave_memory_pressure(struct sock *sk)
}
}
-#define SKB_FRAG_PAGE_ORDER get_order(32768)
DEFINE_STATIC_KEY_FALSE(net_high_order_alloc_disable_key);
/**