]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user.c
net: support MPLS in software packet type parser
[dpdk.git] / lib / librte_vhost / vhost_user.c
index 0560f2f967ff8dfbea43f8852cd684a8e8bf7b3e..508228a3c65f1fde8d0c4468b2f5377be56a4ef1 100644 (file)
@@ -1322,7 +1322,11 @@ vhost_user_set_protocol_features(struct virtio_net **pdev,
 {
        struct virtio_net *dev = *pdev;
        uint64_t protocol_features = msg->payload.u64;
-       if (protocol_features & ~VHOST_USER_PROTOCOL_FEATURES) {
+       uint64_t slave_protocol_features = 0;
+
+       rte_vhost_driver_get_protocol_features(dev->ifname,
+                       &slave_protocol_features);
+       if (protocol_features & ~slave_protocol_features) {
                RTE_LOG(ERR, VHOST_CONFIG,
                        "(%d) received invalid protocol features.\n",
                        dev->vid);