Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1284810

RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS

From Yuval Mintz <Yuval.Mintz@qlogic.com>
Newsgroups linux.kernel
Subject RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set option for Hip06 in HNS
Date 2015-12-06 07:50 +0100
Message-ID <qCBiV-3rs-1@gated-at.bofh.it> (permalink)
References <qwZHj-363-3@gated-at.bofh.it> <qwZHj-363-11@gated-at.bofh.it> <qxAQx-2YK-5@gated-at.bofh.it> <qATDk-1VN-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> > Isn't AE_VERSION_1 something fixed once you publish your features?
> > If it can't be changed, why not simply remove the features from
> > `hw_features' instead of having to implement this ndo?
> There could be a case where the feature is supported by the SoC
> and therefore it is already part of the 'hw_features' but it has been
> say DISABLED or ENABLED by ethtool. In such a case, we need to
> make sure we strike off that feature from the 'features' flag.
> 
> Therefore, we need this leg I suppose. Let me know If I am missing
> something here or there is a gap in my understanding.

Look at ethtool_set_features() - if something isn't listed in hw_features,
you're not support to be able to change it.

If you can make a one-time decision when registering the netdevice
whether this feature is supported by HW or not [assuming AE_VERSION_1
is available at that point and can't later change] than it's the better alternative.

Cheers,
Yuval 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set  option for Hip06 in HNS Salil Mehta <mehta.salil.lnk@gmail.com> - 2015-12-01 15:00 +0100
  RE: [PATCH V4 net-next 4/5] net:hns: Add support of ethtool TSO set  option for Hip06 in HNS Yuval Mintz <Yuval.Mintz@qlogic.com> - 2015-12-06 07:50 +0100

csiph-web