Use sg_init_one() and sg_init_table() as needed.
Signed-off-by: David S. Miller <davem@davemloft.net>
if (copy > len)
copy = len;
if (copy > len)
copy = len;
- sg_set_buf(&sg, skb->data + offset, copy);
+ sg_init_one(&sg, skb->data + offset, copy);
err = icv_update(desc, &sg, copy);
if (unlikely(err))
err = icv_update(desc, &sg, copy);
if (unlikely(err))
if (copy > len)
copy = len;
if (copy > len)
copy = len;
sg_set_page(&sg, frag->page, copy,
sg_set_page(&sg, frag->page, copy,
- frag->page_offset + offset-start);
+ frag->page_offset + offset-start);
err = icv_update(desc, &sg, copy);
if (unlikely(err))
err = icv_update(desc, &sg, copy);
if (unlikely(err))