Lines Matching full:iface

37 static void sock_offload_l2_iface_init(struct net_if *iface)  in sock_offload_l2_iface_init()  argument
40 * or the iface will not be recognized as offloaded in sock_offload_l2_iface_init()
42 net_if_socket_offload_set(iface, offload_socket); in sock_offload_l2_iface_init()
43 net_if_flag_set(iface, NET_IF_NO_AUTO_START); in sock_offload_l2_iface_init()
44 net_if_flag_set(iface, NET_IF_IPV4); in sock_offload_l2_iface_init()
45 net_if_flag_set(iface, NET_IF_IPV6); in sock_offload_l2_iface_init()
49 static void net_offload_l2_iface_init(struct net_if *iface) in net_offload_l2_iface_init() argument
54 iface->if_dev->offload = &net_offload_api; in net_offload_l2_iface_init()
55 net_if_flag_set(iface, NET_IF_NO_AUTO_START); in net_offload_l2_iface_init()
56 net_if_flag_set(iface, NET_IF_IPV4); in net_offload_l2_iface_init()
57 net_if_flag_set(iface, NET_IF_IPV6); in net_offload_l2_iface_init()
70 static int offload_impl_enable(const struct net_if *iface, bool enabled) in offload_impl_enable() argument
146 /* Verify iface under test is down before test */ in ZTEST()
148 "Iface under test must be admin-down before test"); in ZTEST()
150 /* Bring iface up. */ in ZTEST()
153 /* Verify that a single iface went up once (according to the enable callback) */ in ZTEST()
159 "Iface under test should be up after net_if_up"); in ZTEST()
161 /* Bring iface down */ in ZTEST()
164 /* Verify that a single iface went down once (according to the enable callback)*/ in ZTEST()
170 "Iface under test should be down after net_if_down"); in ZTEST()
177 /* Verify iface under test is down before test */ in ZTEST()
179 "Iface under test must be admin-down before test"); in ZTEST()
181 /* Bring iface up */ in ZTEST()
184 /* Verify that the iface went up, but callbacks were not fired*/ in ZTEST()
190 "Iface under test should be up after net_if_up"); in ZTEST()
192 /* Bring iface down */ in ZTEST()
195 /* Verify that the iface went down, but callbacks were not fired*/ in ZTEST()
201 "Iface under test should be down after net_if_down"); in ZTEST()
208 /* Verify iface under test is down before test */ in ZTEST()
210 "Iface under test must be admin-down before test"); in ZTEST()
212 /* Bring iface up. */ in ZTEST()
215 /* Verify that a single iface went up once (according to the enable callback) */ in ZTEST()
221 "Iface under test should be up after net_if_up"); in ZTEST()
223 /* Bring iface down */ in ZTEST()
226 /* Verify that a single iface went down once (according to the enable callback)*/ in ZTEST()
232 "Iface under test should be down after net_if_down"); in ZTEST()
239 /* Verify iface under test is down before test */ in ZTEST()
241 "Iface under test must be admin-down before test"); in ZTEST()
243 /* Bring iface up */ in ZTEST()
246 /* Verify that the iface went up, but callbacks were not fired*/ in ZTEST()
252 "Iface under test should be up after net_if_up"); in ZTEST()
254 /* Bring iface down */ in ZTEST()
257 /* Verify that the iface went down, but callbacks were not fired*/ in ZTEST()
263 "Iface under test should be down after net_if_down"); in ZTEST()
270 /* Verify iface under test is down before test */ in ZTEST()
272 "Iface under test must be admin-down before test"); in ZTEST()
274 /* Bring iface up twice */ in ZTEST()
278 /* Verify that a single iface went up once (according to the enable callback)*/ in ZTEST()
284 "Iface under test should be up after net_if_up"); in ZTEST()
286 /* Verify that a single iface went down once (according to the enable callback)*/ in ZTEST()
296 "Iface under test should be down after net_if_down"); in ZTEST()
303 /* Verify iface under test is down before test */ in ZTEST()
305 "Iface under test must be admin-down before test"); in ZTEST()
314 /* Verify that the iface failed to go up */ in ZTEST()
316 "Iface under test should have failed to go up"); in ZTEST()
323 /* Bring iface up before test */ in ZTEST()
334 /* Verify that the iface failed to go down */ in ZTEST()
336 "Iface under test should have failed to go up"); in ZTEST()
345 /* Bring iface up before test */ in test_addr_add_common()