Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 512436b

Browse files
ON-16634: Update ef_vi X4 naming
1 parent 2579c4b commit 512436b

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

‎src/include/etherfabric/pd.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ enum ef_pd_flags {
4444
/** Bypass the /proc/driver/sfc_resource/.../enable blacklist feature.
4545
* Required CAP_NET_ADMIN */
4646
EF_PD_IGNORE_BLACKLIST = 0x40,
47-
/** Protection domain supports low latency cut through interface */
48-
EF_PD_LLCT = 0x80,
47+
/** Protection domain supports express datapath interface */
48+
EF_PD_EXPRESS = 0x80,
4949
};
5050

5151

‎src/lib/ciul/capabilities.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int ef_vi_capabilities_get_from_pd_flags(ef_driver_handle handle,
119119
{
120120
pd_flags = ef_pd_flags_from_env(pd_flags, handle, ifindex);
121121

122-
if( pd_flags & EF_PD_LLCT )
122+
if( pd_flags & EF_PD_EXPRESS )
123123
cap |= EF_VI_CAP_F_LLCT;
124124

125125
return __ef_vi_capabilities_get(handle, ifindex, -1, -1, cap, value);

‎src/lib/ciul/pd.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ static enum ef_pd_flags __ef_pd_flags_from_env(enum ef_pd_flags flags)
4747
flags = 0;
4848
else if( __ef_tok_eq(s, tok_end - s, "mcast_loop") )
4949
new_flags |= EF_PD_MCAST_LOOP;
50-
else if( __ef_tok_eq(s, tok_end - s, "llct") )
51-
new_flags |= EF_PD_LLCT;
50+
else if( __ef_tok_eq(s, tok_end - s, "express") )
51+
new_flags |= EF_PD_EXPRESS;
5252
s = tok_end + 1;
5353
} while( *tok_end != '0円' );
5454

@@ -68,7 +68,7 @@ static enum ef_pd_flags ef_pd_extra_flags_for_compat(ef_driver_handle pd_dh,
6868
EF_VI_CAP_EXTRA_DATAPATHS,
6969
&capability_val);
7070
if( rc == 0 && (capability_val & EF_VI_EXTRA_DATAPATH_EXPRESS) )
71-
return EF_PD_LLCT;
71+
return EF_PD_EXPRESS;
7272
}
7373
return 0;
7474
}
@@ -114,7 +114,7 @@ static int __ef_pd_alloc(ef_pd* pd, ef_driver_handle pd_dh,
114114
ra.u.pd.in_flags |= EFCH_PD_FLAG_RX_PACKED_STREAM;
115115
if( flags & EF_PD_IGNORE_BLACKLIST )
116116
ra.u.pd.in_flags |= EFCH_PD_FLAG_IGNORE_BLACKLIST;
117-
if( flags & EF_PD_LLCT )
117+
if( flags & EF_PD_EXPRESS )
118118
ra.u.pd.in_flags |= EFCH_PD_FLAG_LLCT;
119119
ra.u.pd.in_vlan_id = vlan_id;
120120

‎src/tests/ef_vi/eflatency.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ enum mode {
109109
};
110110
static unsigned cfg_mode = MODE_DEFAULT;
111111
static enum ef_vi_flags cfg_vi_flags = 0;
112-
static enum ef_pd_flags cfg_rx_pd_flags = EF_PD_LLCT;
113-
static enum ef_pd_flags cfg_tx_pd_flags = EF_PD_LLCT;
112+
static enum ef_pd_flags cfg_rx_pd_flags = EF_PD_EXPRESS;
113+
static enum ef_pd_flags cfg_tx_pd_flags = EF_PD_EXPRESS;
114114

115115

116116
#define N_RX_BUFS (1 << 8)

‎src/tests/ef_vi/utils.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,10 @@ int parse_interface_with_flags(const char* s, int* ifindex_out,
668668
for( ; flags; flags = strchr(flags, ',') ) {
669669
flags++;
670670
if( flag_token_eq(FLAG_DP_LLCT, flags, strlen(FLAG_DP_LLCT)) ) {
671-
*pd_flags_out |= EF_PD_LLCT;
671+
*pd_flags_out |= EF_PD_EXPRESS;
672672
requested_llct = true;
673673
} else if( flag_token_eq(FLAG_DP_FF, flags, strlen(FLAG_DP_FF)) ) {
674-
*pd_flags_out &= ~EF_PD_LLCT;
674+
*pd_flags_out &= ~EF_PD_EXPRESS;
675675
requested_llct = false;
676676
} else if( flag_token_eq(FLAG_PHYS_MODE, flags, strlen(FLAG_PHYS_MODE)) ) {
677677
*pd_flags_out |= EF_PD_PHYS_MODE;
@@ -685,7 +685,7 @@ int parse_interface_with_flags(const char* s, int* ifindex_out,
685685
rc = ef_vi_capabilities_get(driver_handle, *ifindex_out,
686686
EF_VI_CAP_EXTRA_DATAPATHS, &cap);
687687
if( rc != 0 || ! ( cap & EF_VI_EXTRA_DATAPATH_EXPRESS ) ) {
688-
*pd_flags_out &= ~EF_PD_LLCT;
688+
*pd_flags_out &= ~EF_PD_EXPRESS;
689689
if( requested_llct )
690690
fprintf(stderr,
691691
"WARNING: interface %s is not multi-arch, ignoring llct flag\n",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /