From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from inmumg02.tcs.com (Inmumg02.tcs.com [219.64.33.222]) by dpdk.org (Postfix) with ESMTP id 136B48E59 for ; Thu, 24 Dec 2015 18:42:03 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DQAQCwLXxW/2AKEaxegm6BHm2IWbJbghgBDYFkJII7gmZKAhyBOhQBAQEBAQEBgQqENAEBAQQaCQRSDAQLDQQDAQEBIQECBAMCAgJECQgGCwiIPa4ZAQEBb5F1AQEBAQEBAQEBAQEBAQEBAQEBAQEBFASGVoR/hG0JAQcFAQmCZi+BGwWIN4V4iFeFPYVWhBcWhDCIV4VYhG+DdCABAYJTHR2BSGoBhUoBAQE X-IPAS-Result: A2DQAQCwLXxW/2AKEaxegm6BHm2IWbJbghgBDYFkJII7gmZKAhyBOhQBAQEBAQEBgQqENAEBAQQaCQRSDAQLDQQDAQEBIQECBAMCAgJECQgGCwiIPa4ZAQEBb5F1AQEBAQEBAQEBAQEBAQEBAQEBAQEBFASGVoR/hG0JAQcFAQmCZi+BGwWIN4V4iFeFPYVWhBcWhDCIV4VYhG+DdCABAYJTHR2BSGoBhUoBAQE X-IronPort-AV: E=Sophos;i="5.20,474,1444674600"; d="scan'208";a="20366809" X-DISCLAIMER: FALSE In-Reply-To: References: <745DB4B8861F8E4B9849C970520ABBF149834E55@ORSMSX102.amr.corp.intel.com> <738D45BC1F695740A983F43CFE1B7EA943921E56@IRSMSX108.ger.corp.intel.com> To: "Czesnowicz, Przemyslaw" MIME-Version: 1.0 X-KeepSent: FDAB1797:571ED0AC-65257F25:0061201F; type=4; name=$KeepSent Message-ID: From: Abhijeet Karve Date: Thu, 24 Dec 2015 23:11:59 +0530 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" , "discuss@openvswitch.org" Subject: Re: [dpdk-dev] DPDK OVS on Ubuntu 14.04# Issue's Resolved# Getting memory backing issues with qemu parameter passing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2015 17:42:05 -0000 SGkgUHJ6ZW1laywNCg0KVGhhbmsgeW91IHNvIG11Y2ggZm9yIHlvdXIgcXVpY2sgcmVzcG9uc2Uu IA0KDQpUaGUgZ3VpZGUoDQpodHRwczovL2dpdGh1Yi5jb20vb3BlbnN0YWNrL25ldHdvcmtpbmct b3ZzLWRwZGsvYmxvYi9zdGFibGUva2lsby9kb2Mvc291cmNlL2dldHN0YXJ0ZWQvdWJ1bnR1LnJz dA0KKSB3aGljaCB5b3UgaGF2ZSBzdWdnZXN0ZWQgdGhhdCBpcyBmb3Igb3BlbnN0YWNrIHZob3N0 IHVzZXIgaW5zdGFsbGF0aW9ucyANCndpdGggZGV2c3RhY2suIA0KQ2FuJ3Qgd2UgaGF2ZSBhbnkg cmVmZXJlbmNlIGZvciBpbmNsdWRpbmcgb3ZzLWRwZGsgbWVjaGFuaXNhbSBkcml2ZXIgZm9yIA0K b3BlbnN0YWNrIFVidW50dSBkaXN0cmlidXRpb24gd2hpY2ggd2UgYXJlIGZvbGxvd2luZyBmb3Ig DQpjb21wdXRlK2NvbnRyb2xsZXIgbm9kZSBzZXR1cD8iIA0KDQpXZSBhcmUgZmFjaW5nIGJlbG93 IGxpc3RlZCBpc3N1ZXMgV2l0aCB0aGUgY3VycmVudCBhcHByb2FjaCBvZiBzZXR0aW5nIHVwIA0K b3BlbnN0YWNrIGtpbG8gaW50ZXJhY3RpdmVseSArIHJlcGxhY2luZyBvdnMgd2l0aCBvdnMtZHBk ayBlbmFibGVkIGFuZCANCkluc3RhbmNlIGNyZWF0aW9uIGluIG9wZW5zdGFjayB3aXRoDQpwYXNz aW5nIHRoYXQgaW5zdGFuY2UgaWQgdG8gUUVNVSBjb21tY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BESENQIHRob3VnaCBESENQIGlzIGluIGNvbXB1dGUgbm9kZSBvbmx5LiANCg0KWWVzIGl0 J3MgYSBjb21wdXRlICsgY29udHJvbGxlciBub2RlIHNldHVwIGFuZCB3ZSBhcmUgdXNpbmcgZm9s bG93aW5nIA0Kc29mdHdhcmUgcGxhdGZvcm0gb24gY29tcHV0ZSBub2RlOiANCl9fX19fX19fX19f X18gDQpPcGVuc3RhY2s6IEtpbG8gDQpEaXN0cmlidXRpb246IFVidW50dSAxNC4wNCANCk9WUyBW ZXJzaW9uOiAyLjQuMCANCkRQREsgMi4wLjAgDQpfX19fX19fX19fX19fIA0KDQpXZSBhcmUgZm9s bG93aW5nIHRoZSBpbnRlbCBndWlkZSANCmh0dHBzOi8vc29mdHdhcmUuaW50ZWwuY29tL2VuLXVz L2Jsb2dzLzIwMTUvMDYvMDkvYnVpbGRpbmctdmhvc3QtdXNlci1mb3Itb3ZzLXRvZGF5LXVzaW5n LWRwZGstMjAwIA0KDQoNCldoZW4gZG9pbmcgIm92cy12c2N0bCBzaG93IiBpbiBjb21wdXRlIG5v ZGUsIGl0IHNob3dzIGJlbG93IG91dHB1dDogDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX18gDQpvdnMtdnNjdGwgc2hvdyANCmMyZWMyOWE1LTk5MmQtNDg3NS04 YWRjLTEyNjVjMjNlMDMwNCANCiAgIEJyaWRnZSBici1leCANCiAgICAgICBQb3J0IHBoeS1ici1l eCANCiAgICAgICAgICAgSW50ZXJmYWNlIHBoeS1ici1leCANCiAgICAgICAgICAgICAgIHR5cGU6 IHBhdGNoIA0KICAgICAgICAgICAgICAgb3B0aW9uczoge3BlZXI9aW50LWJyLWV4fSANCiAgICAg ICBQb3J0IGJyLWV4IA0KICAgICAgICAgICBJbnRlcmZhY2UgYnItZXggDQogICAgICAgICAgICAg ICB0eXBlOiBpbnRlcm5hbCANCiAgIEJyaWRnZSBici10dW4gDQogICAgICAgZmFpbF9tb2RlOiBz ZWN1cmUgDQogICAgICAgUG9ydCBici10dW4gDQogICAgICAgICAgIEludGVyZmFjZSBici10dW4g DQogICAgICAgICAgICAgICB0eXBlOiBpbnRlcm5hbCANCiAgICAgICBQb3J0IHBhdGNoLWludCAN CiAgICAgICAgICAgSW50ZXJmYWNlIHBhdGNoLWludCANCiAgICAgICAgICAgICAgIHR5cGU6IHBh dGNoIA0KICAgICAgICAgICAgICAgb3B0aW9uczoge3BlZXI9cGF0Y2gtdHVufSANCiAgIEJyaWRn ZSBici1pbnQgDQogICAgICAgZmFpbF9tb2RlOiBzZWN1cmUgDQogICAgICAgUG9ydCAicXZvMGFl MTlhNDMtYjYiIA0KICAgICAgICAgICB0YWc6IDIgDQogICAgICAgICAgIEludGVyZmFjZSAicXZv MGFlMTlhNDMtYjYiIA0KICAgICAgIFBvcnQgYnItaW50IA0KICAgICAgICAgICBJbnRlcmZhY2Ug YnItaW50IA0KICAgICAgICAgICAgICAgdHlwZTogaW50ZXJuYWwgDQogICAgICAgUG9ydCAicXZv MzFjODk4NTYtYTIiIA0KICAgICAgICAgICB0YWc6IDEgDQogICAgICAgICAgIEludGVyZmFjZSAi cXZvMzFjODk4NTYtYTIiIA0KICAgICAgIFBvcnQgcGF0Y2gtdHVuIA0KICAgICAgICAgICBJbnRl cmZhY2UgcGF0Y2gtdHVuIA0KICAgICAgICAgICAgICAgdHlwZTogcGF0Y2ggDQogICAgICAgICAg ICAgICBvcHRpb25zOiB7cGVlcj1wYXRjaC1pbnR9IA0KICAgICAgIFBvcnQgaW50LWJyLWV4IA0K ICAgICAgICAgICBJbnRlcmZhY2UgaW50LWJyLWV4IA0KICAgICAgICAgICAgICAgdHlwZTogcGF0 Y2ggDQogICAgICAgICAgICAgICBvcHRpb25zOiB7cGVlcj1waHktYnItZXh9IA0KICAgICAgIFBv cnQgInF2bzk3ZmVmMjhhLWVjIiANCiAgICAgICAgICAgdGFnOiAyIA0KICAgICAgICAgICBJbnRl cmZhY2UgInF2bzk3ZmVmMjhhLWVjIiANCiAgIEJyaWRnZSBici1kcGRrIA0KICAgICAgIFBvcnQg YnItZHBkayANCiAgICAgICAgICAgSW50ZXJmYWNlIGJyLWRwZGsgDQogICAgICAgICAgICAgICB0 eXBlOiBpbnRlcm5hbCANCiAgIEJyaWRnZSAiYnIwIiANCiAgICAgICBQb3J0ICJicjAiIA0KICAg ICAgICAgICBJbnRlcmZhY2UgImJyMCIgDQogICAgICAgICAgICAgICB0eXBlOiBpbnRlcm5hbCAN CiAgICAgICBQb3J0ICJkcGRrMCIgDQogICAgICAgICAgIEludGVyZmFjZSAiZHBkazAiIA0KICAg ICAgICAgICAgICAgdHlwZTogZHBkayANCiAgICAgICBQb3J0ICJ2aG9zdC11c2VyLTIiIA0KICAg ICAgICAgICBJbnRlcmZhY2UgInZob3N0LXVzZXItMiIgDQogICAgICAgICAgICAgICB0eXBlOiBk cGRrdmhvc3R1c2VyIA0KICAgICAgIFBvcnQgInZob3N0LXVzZXItMCIgDQogICAgICAgICAgIElu dGVyZmFjZSAidmhvc3QtdXNlci0wIiANCiAgICAgICAgICAgICAgIHR5cGU6IGRwZGt2aG9zdHVz ZXIgDQogICAgICAgUG9ydCAidmhvc3QtdXNlci0xIiANCiAgICAgICAgICAgSW50ZXJmYWNlICJ2 aG9zdC11c2VyLTEiIA0KICAgICAgICAgICAgICAgdHlwZTogZHBka3Zob3N0dXNlciANCiAgIG92 c192ZXJzaW9uOiAiMi40LjAiIA0Kcm9vdEBkcGRrOn4jIA0KX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fIA0KDQpPcGVuIGZsb3dzIG91dHB1dCBpbiBicmlkZ2Ug aW4gY29tcHV0ZSBub2RlIGFyZSBhcyBiZWxvdzogDQpfX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX18gDQpyb290QGRwZGs6fiMgb3ZzLW9mY3RsIGR1bXAtZmxvd3Mg YnItdHVuIA0KTlhTVF9GTE9XIHJlcGx5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aG9zdHVzZXIgc3VwcG9ydC4NCj4gDQo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18NCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KPiBTZXR1cCAyIHNldHMgb2YgaHVnZSBwYWdl cyB3aXRoIGRpZmZlcmVudCBzaXplcy4gT25lIGZvciBWaG9zdCBhbmQgDQphbm90aGVyDQo+IGZv ciBHdWVzdCBWTS4NCj4gICAgICAgICAgRWRpdCAvZXRjL2RlZmF1bHQvZ3J1Yi4NCj4gICAgICAg ICAgICAgR1JVQl9DTURMSU5FX0xJTlVYPSJpb21tdT1wdCBpbnRlbF9pb21tdT1vbiAgaHVnZXBh Z2Vzej0xRw0KPiBodWdlcGFnZXM9MTAgaHVnZXBhZ2Vzej0yTSBodWdlcGFnZXM9NDA5NiINCj4g ICAgICAgICAgIyB1cGRhdGUtZ3J1Yg0KPiAgICAgICAgLSBNb3VudCB0aGUgaHVnZSBwYWdlcyBp bnRvIGRpZmZlcmVudCBkaXJlY3RvcnkuDQo+ICAgICAgICAgICAjIHN1ZG8gbW91bnQgLXQgaHVn ZXRsYmZzIG5vZGV2IC9tbnQvaHVnZV8yTSAtbyBwYWdlc2l6ZT0yTQ0KPiAgICAgICAgICAgIyBz dWRvIG1vdW50IC10IGh1Z2V0bGJmcyBub2RldiAvbW50L2h1Z2VfMUcgLW8gcGFnZXNpemU9MUcN Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fXw0KPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fDQo+IA0KPiBBdCBwcmVzZW50IHdlIGFyZSBmYWNpbmcgYW4gaXNzdWUgaW4gVGVzdGlu ZyBEUERLIGFwcGxpY2F0aW9uIG9uIHNldHVwLiANCkluIG91cg0KPiBzY2VuYXJpbywgV2UgaGF2 ZSBEUERLIGluc3RhbmNlIGxhdW5jaGVkIG9uIHRvcCBvZiB0aGUgT3BlbnN0YWNrIEtpbG8NCj4g Y29tcHV0ZSBub2RlLiBOb3QgYWJsZSB0byBhc3NpZ24gREhDUCBJUCBmcm9tIGNvbnRyb2xsZXIu DQo+IA0KPiANCj4gVGhhbmtzICYgUmVnYXJkcw0KPiBBYmhpamVldCBLYXJ2ZQ0KPiANCj4gPT09 PT0tLS0tLT09PT09LS0tLS09PT09PQ0KPiBOb3RpY2U6IFRoZSBpbmZvcm1hdGlvbiBjb250YWlu ZWQgaW4gdGhpcyBlLW1haWwgbWVzc2FnZSBhbmQvb3INCj4gYXR0YWNobWVudHMgdG8gaXQgbWF5 IGNvbnRhaW4gY29uZmlkZW50aWFsIG9yIHByaXZpbGVnZWQgaW5mb3JtYXRpb24uIElmIA0KeW91 DQo+IGFyZSBub3QgdGhlIGludGVuZGVkIHJlY2lwaWVudCwgYW55IGRpc3NlbWluYXRpb24sIHVz ZSwgcmV2aWV3LCANCmRpc3RyaWJ1dGlvbiwNCj4gcHJpbnRpbmcgb3IgY29weWluZyBvZiB0aGUg aW5mb3JtYXRpb24gY29udGFpbmVkIGluIHRoaXMgZS1tYWlsIG1lc3NhZ2UNCj4gYW5kL29yIGF0 dGFjaG1lbnRzIHRvIGl0IGFyZSBzdHJpY3RseSBwcm9oaWJpdGVkLiBJZiB5b3UgaGF2ZSByZWNl aXZlZCANCnRoaXMNCj4gY29tbXVuaWNhdGlvbiBpbiBlcnJvciwgcGxlYXNlIG5vdGlmeSB1cyBi eSByZXBseSBlLW1haWwgb3IgdGVsZXBob25lIA0KYW5kDQo+IGltbWVkaWF0ZWx5IGFuZCBwZXJt YW5lbnRseSBkZWxldGUgdGhlIG1lc3NhZ2UgYW5kIGFueSBhdHRhY2htZW50cy4NCj4gVGhhbmsg eW91DQo+IA0KDQo= >From stephen@networkplumber.org Thu Dec 24 18:51:26 2015 Return-Path: Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) by dpdk.org (Postfix) with ESMTP id 86F608DED for ; Thu, 24 Dec 2015 18:51:26 +0100 (CET) Received: by mail-ig0-f172.google.com with SMTP id to18so99123185igc.0 for ; Thu, 24 Dec 2015 09:51:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=azGx5dCYI6WAiLhKZA/C88rliSNJl4srVlA1GCEwJ5g=; b=Vx1AxJ8Cy+rHV/vyM0M8ogGxRcJ+FbZEvB/GZLLKPCcSoPEuf2W1DH/9Um57ZfsHwh tIhVye1wAeovQF7tCsjMsg19dL/qE4/NUtauu6ohMCprOpei+vE66dio1GBjyiUIkRBv RCaRkKncxQO4/cn87iKkjegkKc9oPEHqzSEjJY7dhaKT5y6YWoTpgcpE2lu/BwPLDtXh 0PASH90ul0GUb2K/JRONggCYTnXf2izI21oxiuPwj0BKhvHg3zg4BXVA8VzCMwpNACdZ ncXY0efM7zCKmMBwitlb71kijz+bmjg+dwIpTfrmYGtrbbQzF6l/IsvmKS+VMJvlET4n CR4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=azGx5dCYI6WAiLhKZA/C88rliSNJl4srVlA1GCEwJ5g=; b=Kq0pVlb0/e5p/zUbtqMVAcQvMvSWyMaJOYCSN8w3z6EywsEeADGZUjwvbmh4UTgYOh p1726ba4AvQIYL3iyxWllQmGpwmzZbkpAdz6+VhQUNWKC0v/cNaOQTq+oc92Bv5xPqpW CvBRFNL6yGIV8CDI1W9wEBaQ+CCVHi6ah8CgKm4V9aGA1GrF7DXGL2aIg7Iged7LkisO PFa0MHkqcZY+u/1bzubZGzAwrUSEM7gvuxD8lmlURRAS0UeArbqZ8DtnBVLK8uiXfIoP aU0Jojc6a355cL3xDAbQ6MmCeQgq10GHrZeO+8658GjP7894rL1VthaO2bHiGq3oTScs txIA== X-Gm-Message-State: ALoCoQkyMb+6Dd8fhwAWUulzTzo3H1iT85old4xa5JoM80Hf3YkLBio1iEAl6+/LentlngQlOoLwI3Epk5DGJiqNlhqJ26TsiQ== X-Received: by 10.50.138.70 with SMTP id qo6mr35154512igb.56.1450979485946; Thu, 24 Dec 2015 09:51:25 -0800 (PST) Received: from xeon-e3 (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id p5sm13961650igj.10.2015.12.24.09.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Dec 2015 09:51:25 -0800 (PST) Date: Thu, 24 Dec 2015 09:51:34 -0800 From: Stephen Hemminger To: Zhihong Wang Message-ID: <20151224095134.6eea3d4b@xeon-e3> In-Reply-To: <1450900995-84185-4-git-send-email-zhihong.wang@intel.com> References: <1450900995-84185-1-git-send-email-zhihong.wang@intel.com> <1450900995-84185-4-git-send-email-zhihong.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 3/3] examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2015 17:51:26 -0000 On Wed, 23 Dec 2015 15:03:15 -0500 Zhihong Wang wrote: > +/* When we receive a INT signal, close all ports */ > +static void > +sigint_handler(__rte_unused int signum) > +{ > + unsigned portid, nb_ports; > + > + printf("Preparing to exit...\n"); > + nb_ports = rte_eth_dev_count(); > + for (portid = 0; portid < nb_ports; portid++) { > + if ((enabled_port_mask & (1 << portid)) == 0) { > + continue; > + } > + printf("Stopping port %d...", portid); > + rte_eth_dev_stop(portid); > + rte_eth_dev_close(portid); > + printf(" Done\n"); > + } > + printf("Bye...\n"); > + exit(0); > +} Signal handlers should only set a flag, which is then checked by thread loops. Calling functions in DPDK from signal handlers is not safe.