[dpdk-dev] [PATCH v2 3/4] vmxnet3: add TSO support

Yong Wang yongwang at vmware.com
Wed Jan 6 00:45:54 CET 2016


On 1/4/16, 9:15 PM, "Stephen Hemminger" <stephen at networkplumber.org> wrote:



>On Mon,  4 Jan 2016 18:28:18 -0800
>Yong Wang <yongwang at vmware.com> wrote:
>
>> +/* The number of descriptors that are needed for a packet. */
>> +static unsigned
>> +txd_estimate(const struct rte_mbuf *m)
>> +{
>> +	return m->nb_segs;
>> +}
>> +
>
>A wrapper function only really clarifies if it is hiding some information.
>Why not just code this in place?

Sure and removed.


More information about the dev mailing list