]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Remove RX buffers alignment to IP_ALIGN
authorIdo Shamay <idos@mellanox.com>
Sun, 2 Nov 2014 14:26:15 +0000 (16:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2014 17:28:13 +0000 (12:28 -0500)
commit46258d20489c05a02d93a0dadfa9c9d17a38a8ea
tree217874cd459ec8c75be4b3507c9fb31fed281d60
parent981ebe864a63a1ce8fc4ecebdb7536ff9672f4e2
net/mlx4_en: Remove RX buffers alignment to IP_ALIGN

When IP_ALIGN has a non zero value, hardware will write to a non aligned
address. The only reader from this address is when copying the header
from the first frag into the linear buffer (further access to the IP
address will be from the linear buffer, in which the headers are
aligned). Since the penalty of non align access by the hardware is
greater than the software memcpy, changing the frag_align to always be 0.

Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h