net/ionic: fix Tx fragment limits
authorAndrew Boyer <aboyer@pensando.io>
Thu, 4 Feb 2021 20:37:10 +0000 (12:37 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Feb 2021 11:44:16 +0000 (12:44 +0100)
commitd13d7829fc67d53b007c00546bb0cd9ee3ae2bcb
tree8947b5f616f3d14a341c8f31beb4ffd5bb934455
parent89ce72c6ffb4337273bb292dc419511f1d619879
net/ionic: fix Tx fragment limits

The reported nb_seg_max should include the main fragment in the
descriptor and the fragments in the accompanying SGL.

Update the Tx prep check as well.

These were missed when updating to the v1 Tx queue structures.

Fixes: 561176361047 ("net/ionic: clean up Tx queue version support")

Signed-off-by: Andrew Boyer <aboyer@pensando.io>
drivers/net/ionic/ionic_ethdev.c
drivers/net/ionic/ionic_rxtx.c