[dpdk-dev] [PATCH] eal: avoid unnecessary conflicts over rte_config file

2016-10-14 Thread John Ousterhout
patch fixes the problem by incorporating the > > > machine name into the config file name (e.g., ~/.rte_hostname_config). > > > > > > Signed-off-by: John Ousterhout > > > --- > > > doc/guides/prog_guide/multi_proc_support.rst | 11 +++ > > &g

[dpdk-dev] [PATCH] eal: avoid unnecessary conflicts over rte_config file

2016-10-13 Thread John Ousterhout
n- On Thu, Oct 13, 2016 at 9:07 AM, Van Haaren, Harry < harry.van.haaren at intel.com> wrote: > Hi John, > > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of John Ousterhout > > Subject: Re: [dpdk-dev] [PATCH] eal: avoid unnecessary conflicts over > rte_config

[dpdk-dev] [PATCH] eal: avoid unnecessary conflicts over rte_config file

2016-10-13 Thread John Ousterhout
; between the machines via NFS, DPDK would incorrectly detect conflicts > > for all but the first application and abort them. This patch fixes the > > problem by incorporating the machine name into the config file name > (e.g., > > ~/.rte_hostname_config). > >

[dpdk-dev] [PATCH] eal: avoid unnecessary conflicts over rte_config file

2016-10-12 Thread John Ousterhout
hared between the machines via NFS, DPDK would incorrectly detect conflicts for all but the first application and abort them. This patch fixes the problem by incorporating the machine name into the config file name (e.g., ~/.rte_hostname_config). Signed-off-by: John Ousterhout --- doc/guides/prog_

[dpdk-dev] [PATCH v4] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-12 Thread John Ousterhout
2016 at 12:47 PM, Thomas Monjalon wrote: > 2016-10-12 12:38, John Ousterhout: > > @@ -127,6 +125,19 @@ rte_vlog(uint32_t level, uint32_t logtype, const > char *format, va_list ap) > > { > > int ret; > > FILE *f = rte_logs.file; > > + if (f == NULL) { &

[dpdk-dev] [PATCH v4] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-12 Thread John Ousterhout
to rte_eal_log_init earlier in rte_eal_init for Linux, so that it starts using the preferrred log ASAP. Signed-off-by: John Ousterhout v4: * Fixed problems from checkpatches. v3: * Made stderr the initial default log stream for Linux. * Deleted lib/librte_eal/bsdapp/eal/eal_log.c. * Del

[dpdk-dev] [PATCH v3] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-12 Thread John Ousterhout
to rte_eal_log_init earlier in rte_eal_init for Linux, so that it starts using the preferrred log ASAP. Signed-off-by: John Ousterhout v3: * Made stderr the initial default log stream for Linux. * Deleted lib/librte_eal/bsdapp/eal/eal_log.c. * Deleted declaration for eal_default_log_stream i

[dpdk-dev] [PATCH v2] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-11 Thread John Ousterhout
Don's argument for stderr over stdout makes sense to me. Does anyone else disagree? -John- On Tue, Oct 11, 2016 at 3:16 PM, Don Provan wrote: > > -Original Message- > > From: John Ousterhout [mailto:ouster at cs.stanford.edu] > > Sent: Tuesday, October 11, 2016

[dpdk-dev] [PATCH v2] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-11 Thread John Ousterhout
D. Let me know your preference. -John- On Tue, Oct 11, 2016 at 1:30 PM, Thomas Monjalon wrote: > 2016-10-11 09:30, John Ousterhout: > > On Tue, Oct 11, 2016 at 1:08 AM, Thomas Monjalon < > thomas.monjalon at 6wind.com> > > wrote: > > > > > > 2016-10-10 15:39,

[dpdk-dev] [PATCH v2] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-11 Thread John Ousterhout
On Tue, Oct 11, 2016 at 1:08 AM, Thomas Monjalon wrote: > > 2016-10-10 15:39, John Ousterhout: > > ... > > > > Note: I see from the code that Linux and BSD set different default streams: > > Linux uses stdout, while BSD uses stderr. This patch retains the distinctio

[dpdk-dev] [PATCH v2] log: respect rte_openlog_stream calls before rte_eal_init

2016-10-10 Thread John Ousterhout
) has been removed; all of the desired functionality can be achieved by calling rte_eal_log_set_default. Signed-off-by: John Ousterhout v2: * Removed the early log mechanism, renamed rte_eal_common_log_init. Note: I see from the code that Linux and BSD set different default streams: Linux u

[dpdk-dev] [PATCH] log: respect rte_openlog_stream calls before rte_eal_init

2016-09-28 Thread John Ousterhout
: John Ousterhout --- lib/librte_eal/bsdapp/eal/eal_log.c | 3 +-- lib/librte_eal/common/eal_common_log.c | 13 +++-- lib/librte_eal/common/include/rte_log.h | 2 +- lib/librte_eal/linuxapp/eal/eal_log.c | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a