|
@@ -1066,9 +1066,6 @@ static void tcp_queue_skb(struct sock *sk, struct sk_buff *skb)
|
|
/* Initialize TSO segments for a packet. */
|
|
/* Initialize TSO segments for a packet. */
|
|
static void tcp_set_skb_tso_segs(struct sk_buff *skb, unsigned int mss_now)
|
|
static void tcp_set_skb_tso_segs(struct sk_buff *skb, unsigned int mss_now)
|
|
{
|
|
{
|
|
- /* Make sure we own this skb before messing gso_size/gso_segs */
|
|
|
|
- WARN_ON_ONCE(skb_cloned(skb));
|
|
|
|
-
|
|
|
|
if (skb->len <= mss_now || skb->ip_summed == CHECKSUM_NONE) {
|
|
if (skb->len <= mss_now || skb->ip_summed == CHECKSUM_NONE) {
|
|
/* Avoid the costly divide in the normal
|
|
/* Avoid the costly divide in the normal
|
|
* non-TSO case.
|
|
* non-TSO case.
|