lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 11 May 2012 07:36:07 +0200 From: Richard Cochran <richardcochran@...il.com> To: "Keller, Jacob E" <jacob.e.keller@...el.com> Cc: "Kirsher, Jeffrey T" <jeffrey.t.kirsher@...el.com>, "davem@...emloft.net" <davem@...emloft.net>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "gospo@...hat.com" <gospo@...hat.com>, "sassmann@...hat.com" <sassmann@...hat.com> Subject: Re: [net-next 07/12] ixgbe: Enable timesync clock-out feature for PPS support on X540 On Thu, May 10, 2012 at 09:54:52PM +0000, Keller, Jacob E wrote: > > Since this function is called in every interrupt, I would check this flag > > first thing. > > > Not sure what you mean? Check this before checking the other interrupts? > I can do that. I only meant that, assuming that the other interrupt sources are much more frequent than the PPS, the normal case will be that the PPS flag is not set. It would be more efficient (that is, shorter ISR code path in normal case) to check the flag first, perhaps like this. ixgbe_intr() { ... #ifdef CONFIG_IXGBE_PTP if (eicr & IXGBE_EICR_TIMESYNC) ixgbe_ptp_check_pps_event(adapter, eicr); #endif ... } Thanks, Richard -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists