From: Bert Kenward <bkenward@solarflare.com>
To: Jarod Wilson <jarod@redhat.com>, <linux-kernel@vger.kernel.org>
Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com>,
"Shradha Shah" <sshah@solarflare.com>, <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next] sfc: use ALIGN macro for aligning frame sizes
Date: Tue, 1 Dec 2015 11:58:40 +0000 [thread overview]
Message-ID: <565D8B70.6050005@solarflare.com> (raw)
In-Reply-To: <1448921541-13343-1-git-send-email-jarod@redhat.com>
On 30/11/15 22:12, Jarod Wilson wrote:
> Don't open-code it.
>
> CC: Solarflare linux maintainers <linux-net-drivers@solarflare.com>
> CC: Shradha Shah <sshah@solarflare.com>
> CC: netdev@vger.kernel.org
> Signed-off-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Bert Kenward <bkenward@solarflare.com>
> ---
> drivers/net/ethernet/sfc/net_driver.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h
> index a8ddd12..746d591 100644
> --- a/drivers/net/ethernet/sfc/net_driver.h
> +++ b/drivers/net/ethernet/sfc/net_driver.h
> @@ -1502,8 +1502,9 @@ static inline struct efx_rx_buffer *efx_rx_buffer(struct efx_rx_queue *rx_queue,
> * same cycle, the XMAC can miss the IPG altogether. We work around
> * this by adding a further 16 bytes.
> */
> +#define EFX_FRAME_PAD 16
> #define EFX_MAX_FRAME_LEN(mtu) \
> - ((((mtu) + ETH_HLEN + VLAN_HLEN + 4/* FCS */ + 7) & ~7) + 16)
> + (ALIGN(((mtu) + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN + EFX_FRAME_PAD), 8))
>
> static inline bool efx_xmit_with_hwtstamp(struct sk_buff *skb)
> {
>
next prev parent reply other threads:[~2015-12-01 12:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 22:12 [PATCH net-next] sfc: use ALIGN macro for aligning frame sizes Jarod Wilson
2015-12-01 11:58 ` Bert Kenward [this message]
2015-12-03 4:56 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565D8B70.6050005@solarflare.com \
--to=bkenward@solarflare.com \
--cc=jarod@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@solarflare.com \
--cc=netdev@vger.kernel.org \
--cc=sshah@solarflare.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.