Skip to content

Commit a54776f

Browse files
wyjwangdavem330
authored andcommitted
netpoll: Fix use correct return type for ndo_start_xmit()
The method ndo_start_xmit() returns a value of type netdev_tx_t. Fix the ndo function to use the correct type. Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 00b5aac commit a54776f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎net/core/netpoll.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ module_param(carrier_timeout, uint, 0644);
6969
#define np_notice(np, fmt, ...) \
7070
pr_notice("%s: " fmt, np->name, ##__VA_ARGS__)
7171

72-
static int netpoll_start_xmit(struct sk_buff *skb, struct net_device *dev,
73-
struct netdev_queue *txq)
72+
static netdev_tx_t netpoll_start_xmit(struct sk_buff *skb,
73+
struct net_device *dev,
74+
struct netdev_queue *txq)
7475
{
75-
int status = NETDEV_TX_OK;
76+
netdev_tx_t status = NETDEV_TX_OK;
7677
netdev_features_t features;
7778

7879
features = netif_skb_features(skb);
@@ -307,7 +308,7 @@ static int netpoll_owner_active(struct net_device *dev)
307308
void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
308309
struct net_device *dev)
309310
{
310-
int status = NETDEV_TX_BUSY;
311+
netdev_tx_t status = NETDEV_TX_BUSY;
311312
unsigned long tries;
312313
/* It is up to the caller to keep npinfo alive. */
313314
struct netpoll_info *npinfo;

0 commit comments

Comments
 (0)