Hello, I want to capture huge amounts of packets without timestamps, since the machine the program is running on has a very slow clock that only yields 200,000 timestamps per second and uses 70% of CPU. But tpacket_rcv reenables the timestamps every time it receives a packet at af_packet.c:643
if (skb->tstamp.tv64 == 0) { __net_timestamp(skb); sock_enable_timestamp(sk); } I suppose that a patch that just removes that four lines won't be accepted, since breaks an userspace interface. Isn't it? So I've tried to enable timestamp when you setup the ring (to not affect other programs) and disabling it latter from user space clearing the SO_TIMESTAMP option. But it doesn't work, since timestamps can't be disabled until the socket is closed. If enabling SO_TIMESTAMP socket option sets SOCK_RCVTSTAMP and calls sock_enable_timestamp, why disabling it just clears SOCK_RCVTSTAMP and don't call sock_disable_timestamp? Thanks.
begin:vcard fn;quoted-printable:Unai Uribarri Rodr=C3=ADguez n;quoted-printable:Uribarri Rodr=C3=ADguez;Unai org:Optenet;Research & Development adr;quoted-printable;quoted-printable:Calle Jos=C3=A9 Echegaray 8;;Parque Empresarial Alvia;Las Rozas;Madrid;28232;Espa=C3=B1a email;internet:[EMAIL PROTECTED] tel;work:+34 902 154 604 tel;home:+34 913 575 433 tel;cell:+34 609 54 91 61 x-mozilla-html:TRUE url:http://www.optenet.com version:2.1 end:vcard