• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef LNN_TRANS_LANE_STRUCT_H
17 #define LNN_TRANS_LANE_STRUCT_H
18 
19 #include "common_list.h"
20 #include "lnn_lane_interface_struct.h"
21 #include "stdint.h"
22 #include "stdbool.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 typedef struct {
29     bool isSupportIpv6;
30     bool isVirtualLink;
31     uint32_t actionAddr;
32     TransOption info;
33     ILaneListener listener;
34 } ExtraReqInfo;
35 
36 typedef struct {
37     bool isWithQos;
38     bool isCanceled;
39     bool isNotified;
40     bool notifyFree;
41     bool hasNotifiedFree;
42     uint32_t laneReqId;
43     LaneAllocInfo allocInfo;
44     uint64_t laneId;
45     ListNode node;
46     LaneAllocListener listener;
47     ExtraReqInfo extraInfo;
48 } TransReqInfo;
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif // LNN_TRANS_LANE_STRUCT_H
54