]> git.baikalelectronics.ru Git - kernel.git/commit
sock: remove one redundant SKB_FRAG_PAGE_ORDER macro
authorYunsheng Lin <linyunsheng@huawei.com>
Thu, 26 Aug 2021 02:49:47 +0000 (10:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 09:46:20 +0000 (10:46 +0100)
commit5a07760cae5c3d082280a81a398c22bb583fcbd3
tree3385e5cf51680f84111b24f6f411aa01f0db1bc2
parent618a8eb4c7137e145d7d1c5975849cd0b24ef4ec
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>
drivers/vhost/net.c
include/net/sock.h
net/core/sock.c