Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58055
b: refs/heads/master
c: f9046eb
h: refs/heads/master
i:
  58053: 554805e
  58051: ed7eed2
  58047: de7fad4
v: v3
  • Loading branch information
Olaf Hering authored and Jeff Garzik committed Jun 27, 2007
1 parent c7f54ee commit 0062423
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 549f8009830177fe8897fd098a999b647990f30d
refs/heads/master: f9046eb3f64db73f1c5b2a25d2a5983351cd1a04
16 changes: 9 additions & 7 deletions trunk/drivers/net/s2io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,7 @@ static void tx_intr_handler(struct fifo_info *fifo_data)
struct tx_curr_get_info get_info, put_info;
struct sk_buff *skb;
struct TxD *txdlp;
u8 err_mask;

get_info = fifo_data->tx_curr_get_info;
memcpy(&put_info, &fifo_data->tx_curr_put_info, sizeof(put_info));
Expand All @@ -2886,8 +2887,8 @@ static void tx_intr_handler(struct fifo_info *fifo_data)
}

/* update t_code statistics */
err >>= 48;
switch(err) {
err_mask = err >> 48;
switch(err_mask) {
case 2:
nic->mac_control.stats_info->sw_stat.
tx_buf_abort_cnt++;
Expand Down Expand Up @@ -6805,6 +6806,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
u16 l3_csum, l4_csum;
unsigned long long err = rxdp->Control_1 & RXD_T_CODE;
struct lro *lro;
u8 err_mask;

skb->dev = dev;

Expand All @@ -6813,8 +6815,8 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
if (err & 0x1) {
sp->mac_control.stats_info->sw_stat.parity_err_cnt++;
}
err >>= 48;
switch(err) {
err_mask = err >> 48;
switch(err_mask) {
case 1:
sp->mac_control.stats_info->sw_stat.
rx_parity_err_cnt++;
Expand Down Expand Up @@ -6867,9 +6869,9 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
* Note that in this case, since checksum will be incorrect,
* stack will validate the same.
*/
if (err != 0x5) {
DBG_PRINT(ERR_DBG, "%s: Rx error Value: 0x%llx\n",
dev->name, err);
if (err_mask != 0x5) {
DBG_PRINT(ERR_DBG, "%s: Rx error Value: 0x%x\n",
dev->name, err_mask);
sp->stats.rx_crc_errors++;
sp->mac_control.stats_info->sw_stat.mem_freed
+= skb->truesize;
Expand Down

0 comments on commit 0062423

Please sign in to comment.