]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: add inline function skb_csum_is_sctp
authorXin Long <lucien.xin@gmail.com>
Sat, 16 Jan 2021 06:13:37 +0000 (14:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 22:31:25 +0000 (14:31 -0800)
commitfa82117010430aff2ce86400f7328f55a31b48a6
treede95fed2c5d6ed2760f4cf362ce9941ee2d1fc6c
parent7eab14de73a8028f770e703962c5437a2b0dda82
net: add inline function skb_csum_is_sctp

This patch is to define a inline function skb_csum_is_sctp(), and
also replace all places where it checks if it's a SCTP CSUM skb.
This function would be used later in many networking drivers in
the following patches.

Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c
include/linux/skbuff.h
net/core/dev.c