[dpdk-dev] ethdev: fix MTU setup error
Checks
Commit Message
NULL device is failed to attach ovs, reported operation not supported
and configuration failed.
To attach ovs:
$VSCTL add-port ovs-br dpdk1 -- set Interface dpdk1 type=dpdk \
options:dpdk-devargs=eth_null0,size=64,copy=1
Signed-off-by: Mallesh Koujalagi <malleshx.koujalagi@intel.com>
---
drivers/net/null/rte_eth_null.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Comments
On 1/31/2018 2:08 AM, Mallesh Koujalagi wrote:
net/null: support MTU update
> NULL device is failed to attach ovs, reported operation not supported
> and configuration failed.
>
> To attach ovs:
> $VSCTL add-port ovs-br dpdk1 -- set Interface dpdk1 type=dpdk \
> options:dpdk-devargs=eth_null0,size=64,copy=1
>
> Signed-off-by: Mallesh Koujalagi <malleshx.koujalagi@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
On 1/31/2018 6:34 PM, Ferruh Yigit wrote:
> On 1/31/2018 2:08 AM, Mallesh Koujalagi wrote:
>
> net/null: support MTU update
>
>> NULL device is failed to attach ovs, reported operation not supported
>> and configuration failed.
>>
>> To attach ovs:
>> $VSCTL add-port ovs-br dpdk1 -- set Interface dpdk1 type=dpdk \
>> options:dpdk-devargs=eth_null0,size=64,copy=1
>>
>> Signed-off-by: Mallesh Koujalagi <malleshx.koujalagi@intel.com>
>
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied to dpdk-next-net/master, thanks.
@@ -278,7 +278,11 @@ eth_tx_queue_setup(struct rte_eth_dev *dev, uint16_t tx_queue_id,
return 0;
}
-
+static int
+eth_mtu_set(struct rte_eth_dev *dev __rte_unused, uint16_t mtu __rte_unused)
+{
+ return 0;
+}
static void
eth_dev_info(struct rte_eth_dev *dev,
struct rte_eth_dev_info *dev_info)
@@ -465,6 +469,7 @@ static const struct eth_dev_ops ops = {
.tx_queue_setup = eth_tx_queue_setup,
.rx_queue_release = eth_queue_release,
.tx_queue_release = eth_queue_release,
+ .mtu_set = eth_mtu_set,
.link_update = eth_link_update,
.stats_get = eth_stats_get,
.stats_reset = eth_stats_reset,