OSDN Git Service

net: Add a 'do_not_pad" to NetClientState
authorBin Meng <bmeng.cn@gmail.com>
Wed, 17 Mar 2021 06:26:28 +0000 (14:26 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 22 Mar 2021 09:34:31 +0000 (17:34 +0800)
commit935344bed6769d6bcb74c6d992818929a6ccb35b
tree3891a679175c09ce6986f4961e19539d684d825c
parentaf774513f7d646badfdb5b686650254f7f08af6b
net: Add a 'do_not_pad" to NetClientState

This adds a flag in NetClientState, so that a net client can tell
its peer that the packets do not need to be padded to the minimum
size of an Ethernet frame (60 bytes) before sending to it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/net.h