mirror of
https://github.com/openvswitch/ovs
synced 2025-10-05 13:26:41 +00:00
datapath: Use FIELD_SIZEOF() in dp_init().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Jesse Gross <jesse@nicira.com>
This commit is contained in:
committed by
Jesse Gross
parent
b21eb1dac0
commit
f3d85db38e
@@ -2091,10 +2091,9 @@ static struct pernet_operations ovs_net_ops = {
|
||||
|
||||
static int __init dp_init(void)
|
||||
{
|
||||
struct sk_buff *dummy_skb;
|
||||
int err;
|
||||
|
||||
BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > sizeof(dummy_skb->cb));
|
||||
BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb));
|
||||
|
||||
pr_info("Open vSwitch switching datapath %s, built "__DATE__" "__TIME__"\n",
|
||||
VERSION);
|
||||
|
Reference in New Issue
Block a user