On Sat, Oct 3, 2020 at 11:10 AM Stephen Hemminger <step...@networkplumber.org> wrote: > > This code snippet is basically an version of skb_pad(). > Probably it is very old and pre-dates that. > Could the code use skb_pad?
Oh! Yes! I looked at the skb_pad function and I think we can use it in this code. Since it doesn't do skb_put, I think we can first call skb_pad and then call skb_put. Thanks for your suggestion. I'll change this patch to make use of skb_pad and re-submit.