sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); - if (socket < 0) + if (sock < 0) bail("socket");
memset(&device, 0, sizeof(device)); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
> 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.
> 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?
[dropped triv...@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"):
> 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/