Skip to contentSkip to conversation

ixgbe: fix broken PPTP handling

PATCH In review Alan Cox 3 participants 4 messages Nov 20, 2012

Subsystems (3)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 ixgbe: fix broken PPTP handling

From: Alan Cox <[email protected]>

Reported to the maintain 3 weeks ago so now sending a patch rather than waiting. ixgbe passes a random event type to the pptp code

---

 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +1 -0
index 01d99af..73291fe 100644
@@ -398,6 +398,7 @@ void ixgbe_ptp_check_pps_event(struct ixgbe_adapter *adapter, u32 eicr)
 
 	switch (hw->mac.type) {
 	case ixgbe_mac_X540:
+		event.type = PTP_CLOCK_PPS;
 		ptp_clock_event(adapter->ptp_clock, &event);
 		break;
 	default:
#1 lore raw
Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:netdev- [email protected]] On Behalf Of Alan Cox
Sent: Tuesday, November 20, 2012 8:33 AM
To: [email protected]
Subject: [PATCH] ixgbe: fix broken PPTP handling

From: Alan Cox <[email protected]>

Reported to the maintain 3 weeks ago so now sending a patch rather than waiting. ixgbe passes a random event type to the pptp code

---

 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +1 -0
index 01d99af..73291fe 100644
@@ -398,6 +398,7 @@ void ixgbe_ptp_check_pps_event(struct ixgbe_adapter
 *adapter, u32 eicr)
 
 	switch (hw->mac.type) {
 	case ixgbe_mac_X540:
+		event.type = PTP_CLOCK_PPS;
 		ptp_clock_event(adapter->ptp_clock, &event);
 		break;
Quoted 1 line

default:

CCing e1000-devel, the mailing list for Intel Wired Ethernet support.

Sorry, Alan--I didn't see any message from you about this before or I would have responded. NAK on this, since I don't see how ixgbe is passing a random event type. The event type gets set to PTP_CLOCK_PPS just a few lines above (before the if (!adapter->ptp_clock) block).

Matthew

#2 lore raw
Quoted 44 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Vick, Matthew
Sent: Tuesday, November 20, 2012 9:12 AM
To: Alan Cox; [email protected]
Cc: [email protected]
Subject: RE: [PATCH] ixgbe: fix broken PPTP handling

Quoted 32 lines

-----Original Message-----
From: [email protected] [mailto:netdev- [email protected]] On Behalf Of Alan Cox
Sent: Tuesday, November 20, 2012 8:33 AM
To: [email protected]
Subject: [PATCH] ixgbe: fix broken PPTP handling

From: Alan Cox <[email protected]>

Reported to the maintain 3 weeks ago so now sending a patch rather than waiting. ixgbe passes a random event type to the pptp code

---

 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +1 -0
index 01d99af..73291fe 100644
@@ -398,6 +398,7 @@ void ixgbe_ptp_check_pps_event(struct ixgbe_adapter
 *adapter, u32 eicr)
 
 	switch (hw->mac.type) {
 	case ixgbe_mac_X540:
+		event.type = PTP_CLOCK_PPS;
 		ptp_clock_event(adapter->ptp_clock, &event);
 		break;
Quoted 1 line

default:

CCing e1000-devel, the mailing list for Intel Wired Ethernet support.

Quoted 6 lines

Sorry, Alan--I didn't see any message from you about this before or I would have responded. NAK on this, since I don't see how ixgbe is passing a random event type. The event type gets set to PTP_CLOCK_PPS just a few lines above (before the if (!adapter->ptp_clock) block).

Matthew

Specifically, commit 3645adbb "ixgbe: fix uninitialized event.type in ixgbe_ptp_check_pps_event"

:)

Sorry I didn't reply directly to your original email with the concern, or CC you. I will do so next time.

Thanks

- Jake

author
#3 lore raw
Quoted 5 lines

Specifically, commit 3645adbb "ixgbe: fix uninitialized event.type in ixgbe_ptp_check_pps_event"

:)

Sorry I didn't reply directly to your original email with the concern, or CC you. I will do so next time.

No problem - I missed the fact it was fixed with a different non-overlapped patch.

Alan

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel&#174; Ethernet, visit http://communities.intel.com/community/wired