From: David Ahern <[email protected]>
Date: Sun, 23 Aug 2015 12:41:00 -0600
> @@ -250,6 +253,17 @@ static netdev_tx_t vrf_xmit(struct sk_buff *skb, struct
> net_device *dev)
>
> static netdev_tx_t vrf_finish(struct sock *sk, struct sk_buff *skb)
> {
> + int err;
> +
> + __skb_pull(skb, skb_network_offset(skb));
> + err = dev_hard_header(skb, skb->dev, ntohs(skb->protocol),
> + NULL, NULL, skb->len);
> +
> + if (err < 0) {
> + vrf_tx_error(skb->dev, skb);
> + return -EINVAL;
> + }
> +
> return dev_queue_xmit(skb);
This is expensive and rediculous to do for every TX frame.
You'll need to find another way.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html