]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/sock.h
net: sock: fix TCP_SKB_MIN_TRUESIZE
[karo-tx-linux.git] / include / net / sock.h
index ea6206ccc8967421b7156e04a30c5d293ba2bcce..95a5a2c6925ab0745b563f7f04663721465460e7 100644 (file)
@@ -2052,7 +2052,7 @@ static inline void sk_wake_async(struct sock *sk, int how, int band)
  * Note: for send buffers, TCP works better if we can build two skbs at
  * minimum.
  */
-#define TCP_SKB_MIN_TRUESIZE   (2048 + sizeof(struct sk_buff))
+#define TCP_SKB_MIN_TRUESIZE   (2048 + SKB_DATA_ALIGN(sizeof(struct sk_buff)))
 
 #define SOCK_MIN_SNDBUF                (TCP_SKB_MIN_TRUESIZE * 2)
 #define SOCK_MIN_RCVBUF                 TCP_SKB_MIN_TRUESIZE