hello,

below is a diff to fix a regression on re chips which have
7k jumbo support (RL_JUMBO_MTU_7K) as reported by daniel jakots
and emilio perea. the regression was caused because RL_JUMBO_FRAMELEN
was changed to 9k and i missed fixing up the RL_JUMBO_MTU_7K macro.

Index: rtl81x9reg.h
===================================================================
RCS file: /cvs/src/sys/dev/ic/rtl81x9reg.h,v
retrieving revision 1.93
diff -u -p -u -r1.93 rtl81x9reg.h
--- rtl81x9reg.h        20 Mar 2015 12:04:09 -0000      1.93
+++ rtl81x9reg.h        8 Apr 2015 09:52:10 -0000
@@ -751,7 +751,7 @@ struct rl_stats {
 #define RL_JUMBO_MTU_6K                \
        ((6 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
 #define RL_JUMBO_MTU_7K                \
-       (RL_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN - 
ETHER_VLAN_ENCAP_LEN)
+       ((7 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
 #define RL_JUMBO_MTU_9K                \
        ((9 * 1024) - ETHER_HDR_LEN - ETHER_CRC_LEN - ETHER_VLAN_ENCAP_LEN)
 #define RL_MTU                 ETHERMTU

Reply via email to