Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131891722
D20009.id56489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20009.id56489.diff
View Options
Index: sys/powerpc/pseries/phyp-hvcall.S
===================================================================
--- sys/powerpc/pseries/phyp-hvcall.S
+++ sys/powerpc/pseries/phyp-hvcall.S
@@ -36,8 +36,13 @@
ASENTRY(phyp_hcall)
mflr %r0
std %r0,16(%r1)
+#if defined(_CALL_ELF) && _CALL_ELF == 2
+ ld %r11,96(%r1) /* Last couple args into volatile regs*/
+ ld %r12,104(%r1)
+#else
ld %r11,112(%r1) /* Last couple args into volatile regs*/
ld %r12,120(%r1)
+#endif
hc /* invoke the hypervisor */
ld %r0,16(%r1)
mtlr %r0
Index: sys/powerpc/pseries/phyp_llan.c
===================================================================
--- sys/powerpc/pseries/phyp_llan.c
+++ sys/powerpc/pseries/phyp_llan.c
@@ -425,7 +425,7 @@
{
struct llan_softc *sc = xsc;
uint64_t bufdescs[6];
- int i;
+ int i, err;
bzero(bufdescs, sizeof(bufdescs));
@@ -435,7 +435,7 @@
bufdescs[i] |= segs[i].ds_addr;
}
- phyp_hcall(H_SEND_LOGICAL_LAN, sc->unit, bufdescs[0],
+ err = phyp_hcall(H_SEND_LOGICAL_LAN, sc->unit, bufdescs[0],
bufdescs[1], bufdescs[2], bufdescs[3], bufdescs[4], bufdescs[5], 0);
/*
* The hypercall returning implies completion -- or that the call will
@@ -443,6 +443,10 @@
* H_BUSY based on the continuation token in R4. For now, just drop
* the packet in such cases.
*/
+ if (err == H_SUCCESS)
+ if_inc_counter(sc->ifp, IFCOUNTER_OPACKETS, 1);
+ else
+ if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 12:38 AM (5 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23647934
Default Alt Text
D20009.id56489.diff (1 KB)
Attached To
Mode
D20009: [PowerPC64] pseries-llan: increment packet output counters on error and success
Attached
Detach File
Event Timeline
Log In to Comment