msm: ipa: Add NETIF_F_SG to RMNET_IPA's hw features

GSO segmented packets are getting linearized
before being sent to rmnet_ipa interface since SG
feature is not enabled.

Add NETIF_F_SG to IPA's HW features so that
ethtool can be used to enable it.

Change-Id: I7b321c796935febb3fa3e9ae520fd65e00da507c
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
This commit is contained in:
Sridhar Ancha 2016-04-28 22:02:23 +05:30 committed by Jeevan Shriram
parent 948ea35fca
commit aea451330a

View file

@ -2040,6 +2040,10 @@ static int ipa_wwan_probe(struct platform_device *pdev)
goto set_perf_err; goto set_perf_err;
/* IPA_RM configuration ends */ /* IPA_RM configuration ends */
/* Enable SG support in netdevice. */
if (ipa_rmnet_res.ipa_advertise_sg_support)
dev->hw_features |= NETIF_F_SG;
ret = register_netdev(dev); ret = register_netdev(dev);
if (ret) { if (ret) {
IPAWANERR("unable to register ipa_netdev %d rc=%d\n", IPAWANERR("unable to register ipa_netdev %d rc=%d\n",