Skip to content

Commit b301c11

Browse files
committed
Ethernet: added 800Gbps Ethernet rate support (#1025)
1 parent 498f3c6 commit b301c11

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/inet/linklayer/ethernet/base/EthernetModes.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ const EthernetModes::EthernetMode EthernetModes::ethernetModes[NUM_OF_ETHERNETMO
120120
B(0),
121121
0,
122122
0
123+
},
124+
{
125+
EIGHTHUNDRED_GIGABIT_ETHERNET_TXRATE,
126+
0,
127+
B(0),
128+
B(-1), // half-duplex is not supported
129+
B(0),
130+
0,
131+
0
123132
}
124133
};
125134

src/inet/linklayer/ethernet/base/EthernetModes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class INET_API EthernetModes
3434

3535
protected:
3636
enum {
37-
NUM_OF_ETHERNETMODES = 11
37+
NUM_OF_ETHERNETMODES = 12
3838
};
3939

4040
// MAC constants for bitrates and modes

src/inet/linklayer/ethernet/common/Ethernet.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const b INTERFRAME_GAP_BITS = b(96);
3838
#define HUNDRED_GIGABIT_ETHERNET_TXRATE 100000000000.0 /* 100 Gbit/sec (in bit/s) */
3939
#define TWOHUNDRED_GIGABIT_ETHERNET_TXRATE 200000000000.0 /* 200 Gbit/sec (in bit/s) */
4040
#define FOURHUNDRED_GIGABIT_ETHERNET_TXRATE 400000000000.0 /* 400 Gbit/sec (in bit/s) */
41+
#define EIGHTHUNDRED_GIGABIT_ETHERNET_TXRATE 800000000000.0 /* 800 Gbit/sec (in bit/s) */
4142

4243
#define MAX_ATTEMPTS 16
4344
#define BACKOFF_RANGE_LIMIT 10

0 commit comments

Comments
 (0)