From: Bogdan Purcareata <bogdan.purcareata@nxp.com>
To: <ruxandra.radulescu@nxp.com>, <gregkh@linuxfoundation.org>,
<linux-kernel@vger.kernel.org>, <devel@driverdev.osuosl.org>
Subject: [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset
Date: Fri, 27 Oct 2017 14:11:34 +0000 [thread overview]
Message-ID: <1509113496-10810-4-git-send-email-bogdan.purcareata@nxp.com> (raw)
In-Reply-To: <1509113496-10810-1-git-send-email-bogdan.purcareata@nxp.com>
When configuring the Tx buffer layout, the software annotation size is
mentioned, and MC accounts for it when configuring the frame
tx_data_offset. No need to handle it in the driver as well.
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
---
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
index 92faaaf..d68c1f5 100644
--- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
+++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
@@ -1872,9 +1872,6 @@ static int setup_dpni(struct fsl_mc_device *ls_dev)
dev_warn(dev, "Tx data offset (%d) not a multiple of 64B\n",
priv->tx_data_offset);
- /* Accommodate software annotation space (SWA) */
- priv->tx_data_offset += DPAA2_ETH_SWA_SIZE;
-
return 0;
close:
--
2.7.4
next prev parent reply other threads:[~2017-10-27 14:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-27 14:11 [PATCH 0/5] staging: fsl-dpaa2/eth: Frame buffer work Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 1/5] staging: fsl-dpaa2/eth: Label cleanup Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 2/5] staging: fsl-dpaa2/eth: Split function Bogdan Purcareata
2017-10-27 14:11 ` Bogdan Purcareata [this message]
2017-10-27 14:26 ` [PATCH 3/5] staging: fsl-dpaa2/eth: Don't account SWA in tx_data_offset Dan Carpenter
2017-10-27 14:31 ` Bogdan Purcareata
2017-10-27 14:34 ` Dan Carpenter
2017-10-27 14:42 ` Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 4/5] staging: fsl-dpaa2/eth: Change RX buffer alignment Bogdan Purcareata
2017-10-27 14:30 ` Dan Carpenter
2017-10-27 14:44 ` Bogdan Purcareata
2017-10-30 8:55 ` Dan Carpenter
2017-10-30 9:16 ` Bogdan Purcareata
2017-10-27 14:11 ` [PATCH 5/5] staging: fsl-dpaa2/eth: Extra headroom in RX buffers Bogdan Purcareata
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=1509113496-10810-4-git-send-email-bogdan.purcareata@nxp.com \
--to=bogdan.purcareata@nxp.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ruxandra.radulescu@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®