search for: __skb_to_sgvec

Displaying 4 results from an estimated 4 matches for "__skb_to_sgvec".

2014 Sep 05
2
[PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()
...of skb_to_sgvec_nomark now need to be careful and possibly restore the mark. Signed-off-by: Paolo Bonzini <pbonzini at redhat.com> diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 163b673f9e62..a3108ef1f1c0 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -3265,6 +3265,7 @@ __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) if (copy > 0) { if (copy > len) copy = len; + sg_unmark_end(sg); sg_set_buf(sg, skb->data + offset, copy); elt++; if ((len -= copy) == 0) @@ -3283,6 +3284,7 @@ __skb_to_sgvec(struct sk_buff *skb, struct sc...
2014 Sep 05
2
[PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()
...of skb_to_sgvec_nomark now need to be careful and possibly restore the mark. Signed-off-by: Paolo Bonzini <pbonzini at redhat.com> diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 163b673f9e62..a3108ef1f1c0 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -3265,6 +3265,7 @@ __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) if (copy > 0) { if (copy > len) copy = len; + sg_unmark_end(sg); sg_set_buf(sg, skb->data + offset, copy); elt++; if ((len -= copy) == 0) @@ -3283,6 +3284,7 @@ __skb_to_sgvec(struct sk_buff *skb, struct sc...
2014 Sep 07
0
[PATCH 1/3] virtio_net: pass well-formed sgs to virtqueue_add_*()
...and > possibly restore the mark. > > Signed-off-by: Paolo Bonzini <pbonzini at redhat.com> > > diff --git a/net/core/skbuff.c b/net/core/skbuff.c > index 163b673f9e62..a3108ef1f1c0 100644 > --- a/net/core/skbuff.c > +++ b/net/core/skbuff.c > @@ -3265,6 +3265,7 @@ __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) > if (copy > 0) { > if (copy > len) > copy = len; > + sg_unmark_end(sg); > sg_set_buf(sg, skb->data + offset, copy); > elt++; > if ((len -= copy) == 0) > @@ -3283,6 +3284,7 @@ __skb...
2018 Nov 13
0
centos 7.5 crashed, kernel BUG at net/core/skbuff.c:3668!
...Tainted: G W ------------ 3.10.0-862.14.4.el7.x86_64 #1 [ 728.972981] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2007 [ 728.973723] task: ffff94153bb1cf10 ti: ffff94153bb30000 task.ti: ffff94153bb30000 [ 728.974689] RIP: 0010:[<ffffffffae7df554>] [<ffffffffae7df554>] __skb_to_sgvec+0x1e4/0x280 [ 728.975792] RSP: 0018:ffff941655183cf8 EFLAGS: 00010202 [ 728.976494] RAX: ffff94163c68c700 RBX: 00000000000005a8 RCX: ffff941648bd4ac0 [ 728.977407] RDX: 0000000000000001 RSI: 00000000000005a8 RDI: 00000000000002c0 [ 728.978322] RBP: ffff941655183d38 R08: ffff941653416cf8 R09: f...