public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trivial: fix checking socket() in net tstamp example
@ 2009-11-08 15:59 Ali Gholami Rudi
  2009-11-08 17:24 ` Patrick Ohly
  0 siblings, 1 reply; 5+ messages in thread
From: Ali Gholami Rudi @ 2009-11-08 15:59 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel, Patrick Ohly, linux-doc, David S. Miller


Signed-off-by: Ali Gholami Rudi <ali@rudi.ir>
---
 .../networking/timestamping/timestamping.c         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/networking/timestamping/timestamping.c b/Documentation/networking/timestamping/timestamping.c
index a7936fe..bab619a 100644
--- a/Documentation/networking/timestamping/timestamping.c
+++ b/Documentation/networking/timestamping/timestamping.c
@@ -370,7 +370,7 @@ int main(int argc, char **argv)
 	}
 
 	sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
-	if (socket < 0)
+	if (sock < 0)
 		bail("socket");
 
 	memset(&device, 0, sizeof(device));

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] trivial: fix checking socket() in net tstamp example
  2009-11-08 15:59 [PATCH] trivial: fix checking socket() in net tstamp example Ali Gholami Rudi
@ 2009-11-08 17:24 ` Patrick Ohly
  2009-11-08 17:57   ` Ali Gholami Rudi
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Patrick Ohly @ 2009-11-08 17:24 UTC (permalink / raw)
  To: Ali Gholami Rudi
  Cc: trivial@kernel.org, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, David S. Miller

On Sun, 2009-11-08 at 15:59 +0000, Ali Gholami Rudi wrote:
> Signed-off-by: Ali Gholami Rudi <ali@rudi.ir>
> ---
>  .../networking/timestamping/timestamping.c         |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Documentation/networking/timestamping/timestamping.c b/Documentation/networking/timestamping/timestamping.c
> index a7936fe..bab619a 100644
> --- a/Documentation/networking/timestamping/timestamping.c
> +++ b/Documentation/networking/timestamping/timestamping.c
> @@ -370,7 +370,7 @@ int main(int argc, char **argv)
>  	}
>  
>  	sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
> -	if (socket < 0)
> +	if (sock < 0)

Argh, of course you are right. FWIW, acknowledged.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] trivial: fix checking socket() in net tstamp example
  2009-11-08 17:24 ` Patrick Ohly
@ 2009-11-08 17:57   ` Ali Gholami Rudi
  2009-11-08 20:19   ` What's the state of the TX timestamping? Emilio G. Cota
  2009-12-18 14:23   ` [PATCH] trivial: fix checking socket() in net tstamp example Jiri Kosina
  2 siblings, 0 replies; 5+ messages in thread
From: Ali Gholami Rudi @ 2009-11-08 17:57 UTC (permalink / raw)
  To: Patrick Ohly
  Cc: trivial@kernel.org, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, David S. Miller

Hi Patrick,

Patrick Ohly <patrick.ohly@intel.com> wrote:
> > --- a/Documentation/networking/timestamping/timestamping.c
> > +++ b/Documentation/networking/timestamping/timestamping.c
> > @@ -370,7 +370,7 @@ int main(int argc, char **argv)
> >  	}
> >  
> >  	sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
> > -	if (socket < 0)
> > +	if (sock < 0)
> 
> Argh, of course you are right. FWIW, acknowledged.

By the way, I tried igb hardware timestamp but HWTSTAMP_FILTER_ALL works
almost like HWTSTAMP_FILTER_PTP_*.  Isn't it supposed to timestamp all
of the incoming packets?  Maybe there is something wrong with my test
setup?

Thanks,
Ali

^ permalink raw reply	[flat|nested] 5+ messages in thread

* What's the state of the TX timestamping?
  2009-11-08 17:24 ` Patrick Ohly
  2009-11-08 17:57   ` Ali Gholami Rudi
@ 2009-11-08 20:19   ` Emilio G. Cota
  2009-12-18 14:23   ` [PATCH] trivial: fix checking socket() in net tstamp example Jiri Kosina
  2 siblings, 0 replies; 5+ messages in thread
From: Emilio G. Cota @ 2009-11-08 20:19 UTC (permalink / raw)
  To: Patrick Ohly
  Cc: Ali Gholami Rudi, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, David S. Miller

[dropped trivial@kernel.org since this is not relevant to them]

by the way Patrick,

A few months ago I tried to implement TX timestamping for a card
I was working on [1]. I wasn't quite successful (sorry can't be more
explicit, I haven't touched it since then) and thought the reason
was that the implementation was half-baked because David reverted
it--I got to that conclusion after reading this thread in
linux-net ("TX time stamping"):

http://thread.gmane.org/gmane.linux.network/121378/

Could you please tell me what the state of TX timestamping is?
Did David revert it or not? I can't find a revert commit.

Thanks,
		Emilio

[1] http://www.ohwr.org/twiki/bin/view/OHR/WhiteRabbit/WhiteRabbit


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] trivial: fix checking socket() in net tstamp example
  2009-11-08 17:24 ` Patrick Ohly
  2009-11-08 17:57   ` Ali Gholami Rudi
  2009-11-08 20:19   ` What's the state of the TX timestamping? Emilio G. Cota
@ 2009-12-18 14:23   ` Jiri Kosina
  2 siblings, 0 replies; 5+ messages in thread
From: Jiri Kosina @ 2009-12-18 14:23 UTC (permalink / raw)
  To: Patrick Ohly
  Cc: Ali Gholami Rudi, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, David S. Miller

On Sun, 8 Nov 2009, Patrick Ohly wrote:

> > diff --git a/Documentation/networking/timestamping/timestamping.c b/Documentation/networking/timestamping/timestamping.c
> > index a7936fe..bab619a 100644
> > --- a/Documentation/networking/timestamping/timestamping.c
> > +++ b/Documentation/networking/timestamping/timestamping.c
> > @@ -370,7 +370,7 @@ int main(int argc, char **argv)
> >  	}
> >  
> >  	sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
> > -	if (socket < 0)
> > +	if (sock < 0)
> 
> Argh, of course you are right. FWIW, acknowledged.

Doesn't seem to be present in 2.6.33-rc1, I have applied it to my tree.

Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-18 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-08 15:59 [PATCH] trivial: fix checking socket() in net tstamp example Ali Gholami Rudi
2009-11-08 17:24 ` Patrick Ohly
2009-11-08 17:57   ` Ali Gholami Rudi
2009-11-08 20:19   ` What's the state of the TX timestamping? Emilio G. Cota
2009-12-18 14:23   ` [PATCH] trivial: fix checking socket() in net tstamp example Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox