Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3523b29b authored by YOSHIFUJI Hideaki / 吉藤英明's avatar YOSHIFUJI Hideaki / 吉藤英明 Committed by David S. Miller
Browse files

openvswitch: Use FIELD_SIZEOF() in dp_init().

parent fab25745
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1989,10 +1989,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\n");