net: ena: change rx copybreak default to reduce kernel memory pressure
authorArthur Kiyanovski <akiyano@amazon.com>
Thu, 11 Oct 2018 08:26:24 +0000 (11:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:13:51 +0000 (10:13 -0700)
Improves socket memory utilization when receiving packets larger
than 128 bytes (the previous rx copybreak) and smaller than 256 bytes.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.h

index 0cf35ae..d241dfc 100644 (file)
@@ -81,7 +81,7 @@
 #define ENA_DEFAULT_RING_SIZE  (1024)
 
 #define ENA_TX_WAKEUP_THRESH           (MAX_SKB_FRAGS + 2)
-#define ENA_DEFAULT_RX_COPYBREAK       (128 - NET_IP_ALIGN)
+#define ENA_DEFAULT_RX_COPYBREAK       (256 - NET_IP_ALIGN)
 
 /* limit the buffer size to 600 bytes to handle MTU changes from very
  * small to very large, in which case the number of buffers per packet