OSDN Git Service

net: qualcomm: rmnet: Capture all drops in transmit path
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Wed, 16 May 2018 00:52:00 +0000 (18:52 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 18:23:04 +0000 (14:23 -0400)
commit1eece799d3f611a28a25319aabbccd4ac948098f
tree70aec6a06f9ad84a85363080963993363917b8fe
parentb0ec758510c0bafd2ea17edf01aa76ab87e29900
net: qualcomm: rmnet: Capture all drops in transmit path

Packets in transmit path could potentially be dropped if there were
errors while adding the MAP header or the checksum header.
Increment the tx_drops stats in these cases.

Additionally, refactor the code to free the packet and increment
the tx_drops stat under a single label.

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c