Commit 9c5c3bd0 authored by Vladimir Oltean's avatar Vladimir Oltean Committed by Jakub Kicinski
Browse files

net: dsa: tag_ocelot: let DSA core deal with TX reallocation



Now that we have a central TX reallocation procedure that accounts for
the tagger's needed headroom in a generic way, we can remove the
skb_cow_head call.

Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9bbda29a
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -143,13 +143,6 @@ static struct sk_buff *ocelot_xmit(struct sk_buff *skb,
	struct ocelot_port *ocelot_port;
	u8 *prefix, *injection;
	u64 qos_class, rew_op;
	int err;

	err = skb_cow_head(skb, OCELOT_TOTAL_TAG_LEN);
	if (unlikely(err < 0)) {
		netdev_err(netdev, "Cannot make room for tag.\n");
		return NULL;
	}

	ocelot_port = ocelot->ports[dp->index];