]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fcoe: cleanup return codes from fcoe_rcv
authorNeil Horman <nhorman@tuxdriver.com>
Sat, 3 Aug 2013 10:45:55 +0000 (10:45 +0000)
committerRobert Love <robert.w.love@intel.com>
Wed, 4 Sep 2013 19:40:43 +0000 (12:40 -0700)
the return codes from fcoe_rcv should be NET_RX_*, not 0 or -1.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
drivers/scsi/fcoe/fcoe.c

index f9b0302f9ba2f2ebbb3ff1247ecb654b3ba04b07..134ca3b471bf17088a900a23e9b911649d0ad9bf 100644 (file)
@@ -1546,13 +1546,13 @@ static int fcoe_rcv(struct sk_buff *skb, struct net_device *netdev,
                wake_up_process(fps->thread);
        spin_unlock(&fps->fcoe_rx_list.lock);
 
-       return 0;
+       return NET_RX_SUCCESS;
 err:
        per_cpu_ptr(lport->stats, get_cpu())->ErrorFrames++;
        put_cpu();
 err2:
        kfree_skb(skb);
-       return -1;
+       return NET_RX_DROP;
 }
 
 /**