Skip to content

Commit

Permalink
net: ethernet: ti: cpsw: remove intr dbg msg from poll handlers
Browse files Browse the repository at this point in the history
At poll handler no possibility to figure out which network device is
handling packets, as cpdma channels are common for both network
devices in dual_emac mode. Currently, the messages are printed only
for one device, in fact, there is two. This print msg is incorrect
and seems is not very useful, so drop it from poll handler.

Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ivan Khoronzhuk authored and David S. Miller committed Aug 11, 2016
1 parent 27e9e10 commit 0a440f8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,6 @@ static int cpsw_tx_poll(struct napi_struct *napi_tx, int budget)
}
}

if (num_tx)
cpsw_dbg(priv, intr, "poll %d tx pkts\n", num_tx);

return num_tx;
}

Expand All @@ -814,9 +811,6 @@ static int cpsw_rx_poll(struct napi_struct *napi_rx, int budget)
}
}

if (num_rx)
cpsw_dbg(priv, intr, "poll %d rx pkts\n", num_rx);

return num_rx;
}

Expand Down

0 comments on commit 0a440f8

Please sign in to comment.