diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-26 16:54:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-26 16:54:33 -0400 |
commit | 4ec5240ec367a592834385893200dd4fb369354c (patch) | |
tree | 3ac9a34948049bff79a2b2ce49c0a3c84e35a748 /include | |
parent | f49809fe9b39e22b0f6f75c86295ce216ce3e374 (diff) | |
parent | b6016b767397258b58163494a869f8f1199e6897 (diff) |
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_tr.h | 6 | ||||
-rw-r--r-- | include/linux/mii.h | 8 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 2 | ||||
-rw-r--r-- | include/linux/pkt_sched.h | 9 | ||||
-rw-r--r-- | include/net/xfrm.h | 2 |
5 files changed, 23 insertions, 4 deletions
diff --git a/include/linux/if_tr.h b/include/linux/if_tr.h index a2b01e1e72f2..6688b414c529 100644 --- a/include/linux/if_tr.h +++ b/include/linux/if_tr.h | |||
@@ -36,8 +36,8 @@ struct trh_hdr { | |||
36 | __u8 fc; /* frame control field */ | 36 | __u8 fc; /* frame control field */ |
37 | __u8 daddr[TR_ALEN]; /* destination address */ | 37 | __u8 daddr[TR_ALEN]; /* destination address */ |
38 | __u8 saddr[TR_ALEN]; /* source address */ | 38 | __u8 saddr[TR_ALEN]; /* source address */ |
39 | __u16 rcf; /* route control field */ | 39 | __be16 rcf; /* route control field */ |
40 | __u16 rseg[8]; /* routing registers */ | 40 | __be16 rseg[8]; /* routing registers */ |
41 | }; | 41 | }; |
42 | 42 | ||
43 | #ifdef __KERNEL__ | 43 | #ifdef __KERNEL__ |
@@ -55,7 +55,7 @@ struct trllc { | |||
55 | __u8 ssap; /* source SAP */ | 55 | __u8 ssap; /* source SAP */ |
56 | __u8 llc; /* LLC control field */ | 56 | __u8 llc; /* LLC control field */ |
57 | __u8 protid[3]; /* protocol id */ | 57 | __u8 protid[3]; /* protocol id */ |
58 | __u16 ethertype; /* ether type field */ | 58 | __be16 ethertype; /* ether type field */ |
59 | }; | 59 | }; |
60 | 60 | ||
61 | /* Token-Ring statistics collection data. */ | 61 | /* Token-Ring statistics collection data. */ |
diff --git a/include/linux/mii.h b/include/linux/mii.h index 20971fe78a8d..374b615ea9ea 100644 --- a/include/linux/mii.h +++ b/include/linux/mii.h | |||
@@ -65,9 +65,13 @@ | |||
65 | #define ADVERTISE_SLCT 0x001f /* Selector bits */ | 65 | #define ADVERTISE_SLCT 0x001f /* Selector bits */ |
66 | #define ADVERTISE_CSMA 0x0001 /* Only selector supported */ | 66 | #define ADVERTISE_CSMA 0x0001 /* Only selector supported */ |
67 | #define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ | 67 | #define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */ |
68 | #define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */ | ||
68 | #define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ | 69 | #define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */ |
70 | #define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */ | ||
69 | #define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ | 71 | #define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */ |
72 | #define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */ | ||
70 | #define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ | 73 | #define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */ |
74 | #define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */ | ||
71 | #define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ | 75 | #define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */ |
72 | #define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ | 76 | #define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */ |
73 | #define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ | 77 | #define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */ |
@@ -84,9 +88,13 @@ | |||
84 | /* Link partner ability register. */ | 88 | /* Link partner ability register. */ |
85 | #define LPA_SLCT 0x001f /* Same as advertise selector */ | 89 | #define LPA_SLCT 0x001f /* Same as advertise selector */ |
86 | #define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ | 90 | #define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */ |
91 | #define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */ | ||
87 | #define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ | 92 | #define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */ |
93 | #define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */ | ||
88 | #define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ | 94 | #define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */ |
95 | #define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */ | ||
89 | #define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ | 96 | #define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */ |
97 | #define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/ | ||
90 | #define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ | 98 | #define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */ |
91 | #define LPA_PAUSE_CAP 0x0400 /* Can pause */ | 99 | #define LPA_PAUSE_CAP 0x0400 /* Can pause */ |
92 | #define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ | 100 | #define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */ |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 7b9720e35361..7ccbc2e4272c 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -2071,6 +2071,7 @@ | |||
2071 | #define PCI_DEVICE_ID_TIGON3_5703 0x1647 | 2071 | #define PCI_DEVICE_ID_TIGON3_5703 0x1647 |
2072 | #define PCI_DEVICE_ID_TIGON3_5704 0x1648 | 2072 | #define PCI_DEVICE_ID_TIGON3_5704 0x1648 |
2073 | #define PCI_DEVICE_ID_TIGON3_5704S_2 0x1649 | 2073 | #define PCI_DEVICE_ID_TIGON3_5704S_2 0x1649 |
2074 | #define PCI_DEVICE_ID_NX2_5706 0x164a | ||
2074 | #define PCI_DEVICE_ID_TIGON3_5702FE 0x164d | 2075 | #define PCI_DEVICE_ID_TIGON3_5702FE 0x164d |
2075 | #define PCI_DEVICE_ID_TIGON3_5705 0x1653 | 2076 | #define PCI_DEVICE_ID_TIGON3_5705 0x1653 |
2076 | #define PCI_DEVICE_ID_TIGON3_5705_2 0x1654 | 2077 | #define PCI_DEVICE_ID_TIGON3_5705_2 0x1654 |
@@ -2090,6 +2091,7 @@ | |||
2090 | #define PCI_DEVICE_ID_TIGON3_5702X 0x16a6 | 2091 | #define PCI_DEVICE_ID_TIGON3_5702X 0x16a6 |
2091 | #define PCI_DEVICE_ID_TIGON3_5703X 0x16a7 | 2092 | #define PCI_DEVICE_ID_TIGON3_5703X 0x16a7 |
2092 | #define PCI_DEVICE_ID_TIGON3_5704S 0x16a8 | 2093 | #define PCI_DEVICE_ID_TIGON3_5704S 0x16a8 |
2094 | #define PCI_DEVICE_ID_NX2_5706S 0x16aa | ||
2093 | #define PCI_DEVICE_ID_TIGON3_5702A3 0x16c6 | 2095 | #define PCI_DEVICE_ID_TIGON3_5702A3 0x16c6 |
2094 | #define PCI_DEVICE_ID_TIGON3_5703A3 0x16c7 | 2096 | #define PCI_DEVICE_ID_TIGON3_5703A3 0x16c7 |
2095 | #define PCI_DEVICE_ID_TIGON3_5781 0x16dd | 2097 | #define PCI_DEVICE_ID_TIGON3_5781 0x16dd |
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h index 73d84c071cb1..1d9da36eb9db 100644 --- a/include/linux/pkt_sched.h +++ b/include/linux/pkt_sched.h | |||
@@ -427,6 +427,7 @@ enum | |||
427 | TCA_NETEM_UNSPEC, | 427 | TCA_NETEM_UNSPEC, |
428 | TCA_NETEM_CORR, | 428 | TCA_NETEM_CORR, |
429 | TCA_NETEM_DELAY_DIST, | 429 | TCA_NETEM_DELAY_DIST, |
430 | TCA_NETEM_REORDER, | ||
430 | __TCA_NETEM_MAX, | 431 | __TCA_NETEM_MAX, |
431 | }; | 432 | }; |
432 | 433 | ||
@@ -437,7 +438,7 @@ struct tc_netem_qopt | |||
437 | __u32 latency; /* added delay (us) */ | 438 | __u32 latency; /* added delay (us) */ |
438 | __u32 limit; /* fifo limit (packets) */ | 439 | __u32 limit; /* fifo limit (packets) */ |
439 | __u32 loss; /* random packet loss (0=none ~0=100%) */ | 440 | __u32 loss; /* random packet loss (0=none ~0=100%) */ |
440 | __u32 gap; /* re-ordering gap (0 for delay all) */ | 441 | __u32 gap; /* re-ordering gap (0 for none) */ |
441 | __u32 duplicate; /* random packet dup (0=none ~0=100%) */ | 442 | __u32 duplicate; /* random packet dup (0=none ~0=100%) */ |
442 | __u32 jitter; /* random jitter in latency (us) */ | 443 | __u32 jitter; /* random jitter in latency (us) */ |
443 | }; | 444 | }; |
@@ -449,6 +450,12 @@ struct tc_netem_corr | |||
449 | __u32 dup_corr; /* duplicate correlation */ | 450 | __u32 dup_corr; /* duplicate correlation */ |
450 | }; | 451 | }; |
451 | 452 | ||
453 | struct tc_netem_reorder | ||
454 | { | ||
455 | __u32 probability; | ||
456 | __u32 correlation; | ||
457 | }; | ||
458 | |||
452 | #define NETEM_DIST_SCALE 8192 | 459 | #define NETEM_DIST_SCALE 8192 |
453 | 460 | ||
454 | #endif | 461 | #endif |
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index e142a256d5dc..d675836ba6c3 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -515,6 +515,8 @@ struct xfrm_dst | |||
515 | struct dst_entry *route; | 515 | struct dst_entry *route; |
516 | u32 route_mtu_cached; | 516 | u32 route_mtu_cached; |
517 | u32 child_mtu_cached; | 517 | u32 child_mtu_cached; |
518 | u32 route_cookie; | ||
519 | u32 path_cookie; | ||
518 | }; | 520 | }; |
519 | 521 | ||
520 | static inline void xfrm_dst_destroy(struct xfrm_dst *xdst) | 522 | static inline void xfrm_dst_destroy(struct xfrm_dst *xdst) |