All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] net: dsa: tag_qca: Make sure there is headroom for tag
@ 2020-02-13  9:07 Per, Forlin <per.forlin
  2020-02-13  9:07 ` [PATCH 2/2] net: dsa: tag_ar9331: " Per, Forlin <per.forlin
  2020-02-13 13:17 ` [PATCH 1/2] net: dsa: tag_qca: " Andrew Lunn
  0 siblings, 2 replies; 4+ messages in thread
From: Per, Forlin <per.forlin @ 2020-02-13  9:07 UTC (permalink / raw)
  To: netdev, andrew, o.rempel, davem; +Cc: Per Forlin, Per Forlin

From: Per Forlin <per.forlin@axis.com>

Passing tag size to skb_cow_head will make sure
there is enough headroom for the tag data.
This change does not introduce any overhead in case there
is already available headroom for tag.

Signed-off-by: Per Forlin <perfn@axis.com>
---
 net/dsa/tag_qca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/dsa/tag_qca.c b/net/dsa/tag_qca.c
index c8a128c9e5e0..70db7c909f74 100644
--- a/net/dsa/tag_qca.c
+++ b/net/dsa/tag_qca.c
@@ -33,7 +33,7 @@ static struct sk_buff *qca_tag_xmit(struct sk_buff *skb, struct net_device *dev)
 	struct dsa_port *dp = dsa_slave_to_port(dev);
 	u16 *phdr, hdr;
 
-	if (skb_cow_head(skb, 0) < 0)
+	if (skb_cow_head(skb, QCA_HDR_LEN) < 0)
 		return NULL;
 
 	skb_push(skb, QCA_HDR_LEN);
-- 
2.11.0


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

* [PATCH 2/2] net: dsa: tag_ar9331: Make sure there is headroom for tag
  2020-02-13  9:07 [PATCH 1/2] net: dsa: tag_qca: Make sure there is headroom for tag Per, Forlin <per.forlin
@ 2020-02-13  9:07 ` Per, Forlin <per.forlin
  2020-02-13 13:18   ` Andrew Lunn
  2020-02-13 13:17 ` [PATCH 1/2] net: dsa: tag_qca: " Andrew Lunn
  1 sibling, 1 reply; 4+ messages in thread
From: Per, Forlin <per.forlin @ 2020-02-13  9:07 UTC (permalink / raw)
  To: netdev, andrew, o.rempel, davem; +Cc: Per Forlin, Per Forlin

From: Per Forlin <per.forlin@axis.com>

Passing tag size to skb_cow_head will make sure
there is enough headroom for the tag data.
This change does not introduce any overhead in case there
is already available headroom for tag.

Signed-off-by: Per Forlin <perfn@axis.com>
---
 net/dsa/tag_ar9331.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/dsa/tag_ar9331.c b/net/dsa/tag_ar9331.c
index 466ffa92a474..55b00694cdba 100644
--- a/net/dsa/tag_ar9331.c
+++ b/net/dsa/tag_ar9331.c
@@ -31,7 +31,7 @@ static struct sk_buff *ar9331_tag_xmit(struct sk_buff *skb,
 	__le16 *phdr;
 	u16 hdr;
 
-	if (skb_cow_head(skb, 0) < 0)
+	if (skb_cow_head(skb, AR9331_HDR_LEN) < 0)
 		return NULL;
 
 	phdr = skb_push(skb, AR9331_HDR_LEN);
-- 
2.11.0


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

* Re: [PATCH 1/2] net: dsa: tag_qca: Make sure there is headroom for tag
  2020-02-13  9:07 [PATCH 1/2] net: dsa: tag_qca: Make sure there is headroom for tag Per, Forlin <per.forlin
  2020-02-13  9:07 ` [PATCH 2/2] net: dsa: tag_ar9331: " Per, Forlin <per.forlin
@ 2020-02-13 13:17 ` Andrew Lunn
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2020-02-13 13:17 UTC (permalink / raw)
  To: Per; +Cc: netdev, o.rempel, davem, Per Forlin, Per Forlin

Hi Per

Thanks for the patches.

Please take a look at

https://www.kernel.org/doc/Documentation/networking/netdev-FAQ.txt

For a multi-patch series, a cover note is required.

You should indicate in the patch subject which tree this is for, net
or net-next. net-next is closed at the moment.


On Thu, Feb 13, 2020 at 10:07:06AM +0100, Per@axis.com wrote:
> From: Per Forlin <per.forlin@axis.com>
> 
> Passing tag size to skb_cow_head will make sure
> there is enough headroom for the tag data.
> This change does not introduce any overhead in case there
> is already available headroom for tag.
> 
> Signed-off-by: Per Forlin <perfn@axis.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

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

* Re: [PATCH 2/2] net: dsa: tag_ar9331: Make sure there is headroom for tag
  2020-02-13  9:07 ` [PATCH 2/2] net: dsa: tag_ar9331: " Per, Forlin <per.forlin
@ 2020-02-13 13:18   ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2020-02-13 13:18 UTC (permalink / raw)
  To: Per; +Cc: netdev, o.rempel, davem, Per Forlin, Per Forlin

On Thu, Feb 13, 2020 at 10:07:07AM +0100, Per@axis.com wrote:
> From: Per Forlin <per.forlin@axis.com>
> 
> Passing tag size to skb_cow_head will make sure
> there is enough headroom for the tag data.
> This change does not introduce any overhead in case there
> is already available headroom for tag.
> 
> Signed-off-by: Per Forlin <perfn@axis.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

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

end of thread, other threads:[~2020-02-13 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13  9:07 [PATCH 1/2] net: dsa: tag_qca: Make sure there is headroom for tag Per, Forlin <per.forlin
2020-02-13  9:07 ` [PATCH 2/2] net: dsa: tag_ar9331: " Per, Forlin <per.forlin
2020-02-13 13:18   ` Andrew Lunn
2020-02-13 13:17 ` [PATCH 1/2] net: dsa: tag_qca: " Andrew Lunn

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.