Skip to content

Commit cf12aab

Browse files
lucvooJeff Kirsher
authored andcommitted
ixgbevf: fix ixgbevf_xmit_frame()'s return type
The method ndo_start_xmit() is defined as returning an 'netdev_tx_t', which is a typedef for an enum type, but the implementation in this driver returns an 'int'. Fix this by returning 'netdev_tx_t' in this driver too. Signed-off-by: Luc Van Oostenryck <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent bbb2707 commit cf12aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4137,7 +4137,7 @@ static int ixgbevf_xmit_frame_ring(struct sk_buff *skb,
41374137
return NETDEV_TX_OK;
41384138
}
41394139

4140-
static int ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
4140+
static netdev_tx_t ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
41414141
{
41424142
struct ixgbevf_adapter *adapter = netdev_priv(netdev);
41434143
struct ixgbevf_ring *tx_ring;

0 commit comments

Comments
 (0)