amd-xgbe: Add BQL support
Call the appropriate BQL functions to track the number of bytes queued during Tx processing and to track the number of packets and bytes that have been transmitted during Tx complete processing. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Esse commit está contido em:

commit de
David S. Miller

pai
c9f140ebb0
commit
5fb4b86a66
@@ -243,6 +243,9 @@ struct xgbe_packet_data {
|
||||
|
||||
u32 rss_hash;
|
||||
enum pkt_hash_types rss_hash_type;
|
||||
|
||||
unsigned int tx_packets;
|
||||
unsigned int tx_bytes;
|
||||
};
|
||||
|
||||
/* Common Rx and Tx descriptor mapping */
|
||||
@@ -274,6 +277,8 @@ struct xgbe_buffer_data {
|
||||
/* Tx-related ring data */
|
||||
struct xgbe_tx_ring_data {
|
||||
unsigned int tso_header; /* TSO header indicator */
|
||||
unsigned int packets; /* BQL packet count */
|
||||
unsigned int bytes; /* BQL byte count */
|
||||
};
|
||||
|
||||
/* Rx-related ring data */
|
||||
|
Referência em uma nova issue
Block a user