]> Pileus Git - ~andy/linux/blobdiff - net/core/dev.c
xfrm: allow to avoid copying DSCP during encapsulation
[~andy/linux] / net / core / dev.c
index a06a7a58dd1181b4134adf7cd95d4b1b5512cda3..96103894ad69dd86e93265305701a25e14867194 100644 (file)
@@ -4057,6 +4057,9 @@ void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
        napi->gro_list = NULL;
        napi->skb = NULL;
        napi->poll = poll;
+       if (weight > NAPI_POLL_WEIGHT)
+               pr_err_once("netif_napi_add() called with weight %d on device %s\n",
+                           weight, dev->name);
        napi->weight = weight;
        list_add(&napi->dev_list, &dev->napi_list);
        napi->dev = dev;