[dpdk-dev] [PATCH v2] ethdev: refine new API to query supported ptypes

2016-04-06 Thread Thomas Monjalon
2016-04-06 11:51, Jianfeng Tan: > This change is to make user code simpler. For PMDs which do not fill any > packet types, return 0 instead of -ENOTSUP as suggested by Bruce. > > Usually, users only care if the required (by ptype_mask) ptypes can be > filled by the specified PMD. If the PMD imple

[dpdk-dev] [PATCH v2] ethdev: refine new API to query supported ptypes

2016-04-06 Thread Jianfeng Tan
This change is to make user code simpler. For PMDs which do not fill any packet types, return 0 instead of -ENOTSUP as suggested by Bruce. Usually, users only care if the required (by ptype_mask) ptypes can be filled by the specified PMD. If the PMD implements dev_supported_ptypes_get func is not