All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/nfp: configure capabilities by default
@ 2017-09-13 11:28 Alejandro Lucero
  2017-09-18 19:11 ` Ferruh Yigit
  0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Lucero @ 2017-09-13 11:28 UTC (permalink / raw)
  To: dev

These capabilities are enabled in current NFP firmwares by
default, but it could be they are not with NFP firmwares to come.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
---
 drivers/net/nfp/nfp_net.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c
index b014209..000d339 100644
--- a/drivers/net/nfp/nfp_net.c
+++ b/drivers/net/nfp/nfp_net.c
@@ -515,6 +515,18 @@ enum nfp_qcp_ptr {
 	if (hw->cap & NFP_NET_CFG_CTRL_L2MC)
 		new_ctrl |= NFP_NET_CFG_CTRL_L2MC;
 
+	/* TX checksum offload */
+	if (hw->cap & NFP_NET_CFG_CTRL_TXCSUM)
+		new_ctrl |= NFP_NET_CFG_CTRL_TXCSUM;
+
+	/* LSO offload */
+	if (hw->cap & NFP_NET_CFG_CTRL_LSO)
+		new_ctrl |= NFP_NET_CFG_CTRL_LSO;
+
+	/* RX gather */
+	if (hw->cap & NFP_NET_CFG_CTRL_GATHER)
+		new_ctrl |= NFP_NET_CFG_CTRL_GATHER;
+
 	if (!new_ctrl)
 		return 0;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/nfp: configure capabilities by default
  2017-09-13 11:28 [PATCH] net/nfp: configure capabilities by default Alejandro Lucero
@ 2017-09-18 19:11 ` Ferruh Yigit
  0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2017-09-18 19:11 UTC (permalink / raw)
  To: Alejandro Lucero, dev

On 9/13/2017 12:28 PM, Alejandro Lucero wrote:
> These capabilities are enabled in current NFP firmwares by
> default, but it could be they are not with NFP firmwares to come.
> 
> Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-18 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 11:28 [PATCH] net/nfp: configure capabilities by default Alejandro Lucero
2017-09-18 19:11 ` Ferruh Yigit

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.