diff options
Diffstat (limited to 'drivers/misc/sgi-xp')
-rw-r--r-- | drivers/misc/sgi-xp/xpnet.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c index 8d1c60a3f0df..16f0abda1423 100644 --- a/drivers/misc/sgi-xp/xpnet.c +++ b/drivers/misc/sgi-xp/xpnet.c | |||
@@ -235,12 +235,11 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg) | |||
235 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 235 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
236 | 236 | ||
237 | dev_dbg(xpnet, "passing skb to network layer\n" | 237 | dev_dbg(xpnet, "passing skb to network layer\n" |
238 | KERN_DEBUG "\tskb->head=0x%p skb->data=0x%p skb->tail=0x%p " | 238 | "\tskb->head=0x%p skb->data=0x%p skb->tail=0x%p " |
239 | "skb->end=0x%p skb->len=%d\n", | 239 | "skb->end=0x%p skb->len=%d\n", |
240 | (void *)skb->head, (void *)skb->data, skb_tail_pointer(skb), | 240 | (void *)skb->head, (void *)skb->data, skb_tail_pointer(skb), |
241 | skb_end_pointer(skb), skb->len); | 241 | skb_end_pointer(skb), skb->len); |
242 | 242 | ||
243 | xpnet_device->last_rx = jiffies; | ||
244 | xpnet_device->stats.rx_packets++; | 243 | xpnet_device->stats.rx_packets++; |
245 | xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; | 244 | xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; |
246 | 245 | ||
@@ -399,7 +398,7 @@ xpnet_send(struct sk_buff *skb, struct xpnet_pending_msg *queued_msg, | |||
399 | msg->buf_pa = xp_pa((void *)start_addr); | 398 | msg->buf_pa = xp_pa((void *)start_addr); |
400 | 399 | ||
401 | dev_dbg(xpnet, "sending XPC message to %d:%d\n" | 400 | dev_dbg(xpnet, "sending XPC message to %d:%d\n" |
402 | KERN_DEBUG "msg->buf_pa=0x%lx, msg->size=%u, " | 401 | "msg->buf_pa=0x%lx, msg->size=%u, " |
403 | "msg->leadin_ignore=%u, msg->tailout_ignore=%u\n", | 402 | "msg->leadin_ignore=%u, msg->tailout_ignore=%u\n", |
404 | dest_partid, XPC_NET_CHANNEL, msg->buf_pa, msg->size, | 403 | dest_partid, XPC_NET_CHANNEL, msg->buf_pa, msg->size, |
405 | msg->leadin_ignore, msg->tailout_ignore); | 404 | msg->leadin_ignore, msg->tailout_ignore); |
@@ -436,7 +435,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
436 | 435 | ||
437 | if (skb->data[0] == 0x33) { | 436 | if (skb->data[0] == 0x33) { |
438 | dev_kfree_skb(skb); | 437 | dev_kfree_skb(skb); |
439 | return 0; /* nothing needed to be done */ | 438 | return NETDEV_TX_OK; /* nothing needed to be done */ |
440 | } | 439 | } |
441 | 440 | ||
442 | /* | 441 | /* |
@@ -503,7 +502,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
503 | dev->stats.tx_packets++; | 502 | dev->stats.tx_packets++; |
504 | dev->stats.tx_bytes += skb->len; | 503 | dev->stats.tx_bytes += skb->len; |
505 | 504 | ||
506 | return 0; | 505 | return NETDEV_TX_OK; |
507 | } | 506 | } |
508 | 507 | ||
509 | /* | 508 | /* |