Skip to content

Commit 47a3968

Browse files
lucvoodledford
authored andcommitted
IB/ipoib: fix ipoib_start_xmit()'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]> Reviewed-by: Yuval Shaia <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent c192a12 commit 47a3968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/ulp/ipoib/ipoib_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev,
10941094
spin_unlock_irqrestore(&priv->lock, flags);
10951095
}
10961096

1097-
static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
1097+
static netdev_tx_t ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
10981098
{
10991099
struct ipoib_dev_priv *priv = ipoib_priv(dev);
11001100
struct rdma_netdev *rn = netdev_priv(dev);

0 commit comments

Comments
 (0)