]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/net/ethernet/amazon/ena/ena_netdev.h
net: ena: add support for out of order rx buffers refill
[mirror_ubuntu-artful-kernel.git] / drivers / net / ethernet / amazon / ena / ena_netdev.h
index ccbb14cc303816277e3d57bd8a84d8066919eb92..5edc3da96ce50f53f7f4a1e98e5a7cb6799f865c 100644 (file)
@@ -194,12 +194,19 @@ struct ena_stats_rx {
        u64 dma_mapping_err;
        u64 bad_desc_num;
        u64 rx_copybreak_pkt;
+       u64 bad_req_id;
        u64 empty_rx_ring;
 };
 
 struct ena_ring {
-       /* Holds the empty requests for TX out of order completions */
-       u16 *free_tx_ids;
+       union {
+               /* Holds the empty requests for TX/RX
+                * out of order completions
+                */
+               u16 *free_tx_ids;
+               u16 *free_rx_ids;
+       };
+
        union {
                struct ena_tx_buffer *tx_buffer_info;
                struct ena_rx_buffer *rx_buffer_info;