> > if (skb_shinfo(skb)->nr_frags) {
> 
> I would take the above condition instead of this:
> 
> if (ipoib_ud_need_sg(priv->max_ib_mtu)) {
Thanks Eli. I will create a patch for the code optimization. This patch
might not be picked up since it doesn't belong to critical bug.
Shirley