aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions
.pl> 2011-08-25 09:35:03 -0400 PM QoS: Move and rename the implementation files' href='/cgit/cgit.cgi/litmus-rt-imx6.git/commit/include/linux/netdevice.h?id=e8db0be1245de16a6cc6365506abc392c3c212d4'>e8db0be1245d
d7fe0f241dce
187f1882b5b0
bea3348eef27
60063497a95e
1da177e4c3f4


1da177e4c3f4
4d5b78c055c7
db21733488f8
bea3348eef27
114cf5802165
1da177e4c3f4
b1b67dd45a6b
a050c33f4a4d
cf85d08fdf45
7a6b6f515f77
2f90b8657ec9

5bc1421e34ec
a050c33f4a4d
a59e2ecb859f
77162022ab26
607ca46e97a1
a59e2ecb859f
115c1d6e61b7
313162d0b838
c1f19b51d1d8
704232c2718c

1da177e4c3f4



d07d7507bfb4


c1f79426e2df



fbdeca2d7753

c1f79426e2df
9a1654ba0b50



572a9d7b6fc7


















9a1654ba0b50



1da177e4c3f4
b9df3cb8cf9a


572a9d7b6fc7
1da177e4c3f4

dc1f8bf68b31
9a1654ba0b50
572a9d7b6fc7
dc1f8bf68b31
572a9d7b6fc7
9a1654ba0b50


dc1f8bf68b31


9a1654ba0b50

















1da177e4c3f4



fe2918b098cd
d11ead75672d
8388e3da34ed




d11ead75672d
8388e3da34ed
1da177e4c3f4
8388e3da34ed
1da177e4c3f4

d11ead75672d

1da177e4c3f4





be1f3c2c027c

1da177e4c3f4
fe2918b098cd
d94d9fee9fa4
3cfde79c6c7c








1da177e4c3f4
1da177e4c3f4
3cfde79c6c7c




1da177e4c3f4




1da177e4c3f4



1da177e4c3f4



adc9300e78e6
c5905afb0ee6

adc9300e78e6

1da177e4c3f4



f001fde5eadd



ccffad25b513



22bedad3ce11
ccffad25b513
22bedad3ce11
8f8f103d8466
f001fde5eadd


31278e714713




22bedad3ce11



32e7bfc41110
22bedad3ce11



6683ece36e35
22bedad3ce11

18e225f25766
22bedad3ce11
6683ece36e35
d94d9fee9fa4
f6b72b6217f8
5c25f686db35
3644f0cee774
1da177e4c3f4



5ba0eac6e0b7
1da177e4c3f4













f5184d267c1a
1da177e4c3f4
f5184d267c1a
1da177e4c3f4
3b04ddde02cf


95c961747284
3b04ddde02cf

e69dd336ee3a
3b04ddde02cf




1da177e4c3f4




d94d9fee9fa4
1da177e4c3f4

1da177e4c3f4
b00055aacdb1

1da177e4c3f4




fe2918b098cd
1da177e4c3f4






20380731bc28
1da177e4c3f4

bea3348eef27












404f7c9e118e
bea3348eef27



bea3348eef27
5d38a079ce39
d565b0a1a9b6
5d38a079ce39
404f7c9e118e
bea3348eef27

d94d9fee9fa4
bea3348eef27
a0a46196cd98
7b363e440021
bea3348eef27

5b252f0c2f98
d1c76af9e243





5b252f0c2f98
d1c76af9e243
8a4eb5734e8d































d93cf0687c98
8a4eb5734e8d















ab95bfe01f98
b3c975286896
bea3348eef27
4d29515f5a2e
a0a46196cd98



bea3348eef27





a0a46196cd98

bea3348eef27
4d29515f5a2e
bea3348eef27
a0a46196cd98

bea3348eef27














bfe13f54f502
4d29515f5a2e
bfe13f54f502


4d29515f5a2e
bfe13f54f502
4d29515f5a2e
bfe13f54f502

bea3348eef27





d565b0a1a9b6

bea3348eef27









a0a46196cd98
bea3348eef27
43cc7380eced
a0a46196cd98
bea3348eef27















c264c3dee9f2

















d94d9fee9fa4
734664982638

c3f26a269c24
734664982638



79d16385c7f2
734664982638








79d16385c7f2
bb949fbd1878
6a321cb370ad


bb949fbd1878
b0e1e6462df3

ccf5ff69fbbd
1d24eb4815d1

f2cd2d3e9b3e


6a321cb370ad




9d21493b4beb



ccf5ff69fbbd





114cf5802165





e8a0464cc950
bb949fbd1878
f2cd2d3e9b3e




b236da6931e2
f2cd2d3e9b3e









df3345457a7a
0a9627f2649a








60b778ce5196
0a9627f2649a
fec5e652e58f
c445477d74ab


fec5e652e58f


c445477d74ab
fec5e652e58f

c445477d74ab
fec5e652e58f










60b778ce5196
fec5e652e58f









60b778ce5196
fec5e652e58f























6e3f7faf3e8a
fec5e652e58f
c445477d74ab




0a9627f2649a

6e3f7faf3e8a


fe8222406c82
0a9627f2649a
fec5e652e58f
d314774cf2cd
bf2641451010










60b778ce5196
bf2641451010







a41778694806
bf2641451010




4f57c087de9b







68bad94ed801
















d314774cf2cd

008298231abb

d314774cf2cd


















dc1f8bf68b31

008298231abb
dc1f8bf68b31

008298231abb





d314774cf2cd





01789349ee52

d314774cf2cd


37b607c5ac3b
d314774cf2cd



















008298231abb
d314774cf2cd


3cfde79c6c7c
28172739f0a2
d308e38fa546
d314774cf2cd
be1f3c2c027c
3cfde79c6c7c

82695d9b186d
be1f3c2c027c




d314774cf2cd
8e586137e6b6
d314774cf2cd


8e586137e6b6
d314774cf2cd



95c26df829ba




5f8444a3fa61
95c26df829ba

57b610805ce9


4f57c087de9b




c445477d74ab
e9bce845c0ce





























68bad94ed801






e9bce845c0ce





c445477d74ab





fbaec0ea54f7
8b98a70c28a6
fbaec0ea54f7




5455c6998d34

c8f44affb724

5455c6998d34



c8f44affb724
5455c6998d34



edc7d57327bd

6b6e27255f29
77162022ab26
1690be63a27b

6b6e27255f29
77162022ab26




e5a55a898720



4bf84c35c65f







d314774cf2cd





dc1f8bf68b31
008298231abb


d314774cf2cd

d314774cf2cd
d314774cf2cd

d314774cf2cd
d314774cf2cd

d314774cf2cd

008298231abb



d314774cf2cd

28172739f0a2

d314774cf2cd

8e586137e6b6
d314774cf2cd
8e586137e6b6
d314774cf2cd

d314774cf2cd
4247e161b12f
47be03a28cc6

0e34e93177fb
d314774cf2cd
95c26df829ba





5f8444a3fa61

95c26df829ba


57b610805ce9




4f57c087de9b
d11ead75672d
cb45439977d3

4d288d5767f8





6247e086188d



68bad94ed801

3c9c36bcedd4

d11ead75672d
df5c79452f26



4d288d5767f8
3c9c36bcedd4
c445477d74ab





fbaec0ea54f7



c8f44affb724

5455c6998d34
c8f44affb724
da6a8fa0275e
447f219190bf
77162022ab26

edc7d57327bd
77162022ab26
6b6e27255f29
77162022ab26

1690be63a27b
77162022ab26
6b6e27255f29
77162022ab26



e5a55a898720




6cbdceeb1cb1

407af3299ef1

4bf84c35c65f

d314774cf2cd

bea3348eef27
1da177e4c3f4








d94d9fee9fa4
1da177e4c3f4



724df615928b
1da177e4c3f4

ed77134bfccf
9136461ab921
9356b8fc07dc
9136461ab921
0b815a1a6d43

1da177e4c3f4














1da177e4c3f4

7562f876cd93
bea3348eef27
44a0873d5228
1da177e4c3f4
5455c6998d34
c8f44affb724
5455c6998d34
c8f44affb724
5455c6998d34
c8f44affb724
1aac62671686
c8f44affb724
6a674e9c75b1





04ed3e741d0f
1da177e4c3f4



c45d286e72dd
caf586e5f23c


1da177e4c3f4
b86e0280bb55
1da177e4c3f4




b86e0280bb55
d314774cf2cd

76fd85937097
1da177e4c3f4
3b04ddde02cf


b00055aacdb1
3bdc0eba0b8b

1da177e4c3f4
1da177e4c3f4

b00055aacdb1


bdc220da3209


cd7b5396e7e4
1da177e4c3f4

1da177e4c3f4
f5184d267c1a






1da177e4c3f4
a6f9a70578b9
c1f79426e2df
1da177e4c3f4
596b9b68ef11
1da177e4c3f4

ccffad25b513
22bedad3ce11

2d348d1f569f
9d45abe1c294

1da177e4c3f4
1da177e4c3f4

65ac6a5fa658
d11ead75672d
5b9ea6e022e9
65ac6a5fa658
34a430d7bd26
cf50dcc24f82
91da11f870f0
1da177e4c3f4
95ae6b228f81
fc766e4c4965
198caeca3eb4
1da177e4c3f4
704232c2718c

1da177e4c3f4
9356b8fc07dc
cd13539b8bc9
9356b8fc07dc
4dc89133f49b







9ff162a8b96c

9356b8fc07dc
f001fde5eadd



31278e714713

9356b8fc07dc

1da177e4c3f4
ccf5ff69fbbd
0a9627f2649a
ccf5ff69fbbd
0a9627f2649a
ccf5ff69fbbd
0a9627f2649a

62fe0b40abb3
0a9627f2649a
62fe0b40abb3


c445477d74ab






df3345457a7a
0a9627f2649a
61391cde9eef

e8a0464cc950
24824a09e354
cd13539b8bc9



e8a0464cc950
fd2ea0a79faa

e8a0464cc950
fd2ea0a79faa



af356afa010f


1da177e4c3f4
c3f26a269c24
cd13539b8bc9
bf2641451010
a41778694806
bf2641451010
1d24eb4815d1
9356b8fc07dc
9d21493b4beb




9356b8fc07dc




1da177e4c3f4
29b4433d991c
9356b8fc07dc
1da177e4c3f4

1da177e4c3f4


e014debecd3e
572a103ded0a
1da177e4c3f4

b17a7c179dd3
1da177e4c3f4


937f1ba56b4b
449f4544267e


a2835763e130




1da177e4c3f4
d314774cf2cd

1da177e4c3f4
1da177e4c3f4
5fbee843c32e
1da177e4c3f4
eae792b722fe
c346dca10840
4a1c537113cd

c346dca10840
4a1c537113cd
4951704b4e23
a7855c78a24d


290b895e0ba4
6d81f41c58c6
2681128f0ced
a7855c78a24d
eca9ebac651f
3cc77ec74e15
febf018d2234

1da177e4c3f4
1da177e4c3f4
43cb76d91ee8
0c509a6c9393

38f7b870d4a6


f25f4e44808f
82cc1a7a5687


30b678d844af

d314774cf2cd
7a6b6f515f77
2f90b8657ec9
32953543221c
2f90b8657ec9
4f57c087de9b


2f90b8657ec9
d11ead75672d
4d288d5767f8


5bc1421e34ec


c1f19b51d1d8

cbda10fa97d7
23d3b8bfb8eb

cbda10fa97d7

9136461ab921

1da177e4c3f4
43cb76d91ee8
1da177e4c3f4

1da177e4c3f4
e8a0464cc950
4f57c087de9b


















































e8a0464cc950

















8c4c49df5cfe

416186fbf8c5
8c4c49df5cfe
c346dca10840





c2d9ba9bce8d
c346dca10840


f5aa23fd4906
c346dca10840

f3005d7f4abe

c346dca10840


cf85d08fdf45









396138f03f45









bea3348eef27





6472ce6096bf
1da177e4c3f4
1ce8e7b57b3a
1da177e4c3f4

1da177e4c3f4


43cb76d91ee8
1da177e4c3f4
384912ed194e





3b582cc14c50









d565b0a1a9b6

bea3348eef27
d81565340409





d565b0a1a9b6


78a478d0efd9


7489594cb249


86911732d399


d565b0a1a9b6



2e71a6f8084e



5d38a079ce39

2e71a6f8084e
d7e8883cfcf4

2e71a6f8084e


863472454ce5


c3c7c254b2e8


d565b0a1a9b6


d81565340409
1da177e4c3f4
f2ccd8fa06c8





c0de08d04215

1da177e4c3f4



f191a1d17f22
576a30eb6453
c8f44affb724
a430a43d0875
d565b0a1a9b6


f191a1d17f22





1da177e4c3f4

1da177e4c3f4

dcfe1421c916






















0115e8e30d6f
dcfe1421c916








1da177e4c3f4

30e6c9fa93cf
c91f6df2db49
7562f876cd93
881d966b48b0

dcbccbd4f1f6

c6d14c84566d

881d966b48b0



254245d23396

881d966b48b0
7562f876cd93
a050c33f4a4d




c346dca10840
a050c33f4a4d



ce81b76a3983





ccf434380d1a
ce81b76a3983


a050c33f4a4d




7562f876cd93
ccf434380d1a






1da177e4c3f4

941666c2e3e0

881d966b48b0

1da177e4c3f4


62532da9d5f4


1da177e4c3f4
bb69ae049fcc

881d966b48b0
72c9528bab94
881d966b48b0
1da177e4c3f4


0187bdfb0567
95603e2293de
1da177e4c3f4

44a0873d5228

9b5e383c11b0
44a0873d5228




29b4433d991c
1da177e4c3f4

937f1ba56b4b
9d40bbda599d
937f1ba56b4b
881d966b48b0

fb699dfd426a
1da177e4c3f4



86911732d399

















a5b1cf288d42

86911732d399
a5b1cf288d42

78a478d0efd9
a5b1cf288d42



78a478d0efd9
a5b1cf288d42


17dd759c67f2


a5b1cf288d42

17dd759c67f2
86911732d399
1da177e4c3f4
aa4b9f533ed5

78d3fd0b7de8
aa4b9f533ed5

36e7b1b8dac1

78d3fd0b7de8

36e7b1b8dac1

0c4e85813d0a

3b04ddde02cf
95c961747284
0c4e85813d0a
f1ecfd5d3b69
0c4e85813d0a
3b04ddde02cf

0c4e85813d0a

b95cce357681




1b83336bb9fa
b95cce357681
3b04ddde02cf
b95cce357681

1da177e4c3f4







88751275b8e8
1da177e4c3f4
d94d9fee9fa4
37437bb2e1ae
a9cbd588fdb7
1da177e4c3f4
1da177e4c3f4
6e7676c1a76a
1da177e4c3f4
dee42870a423
cd7b5396e7e4



dee42870a423
fd793d890572
88751275b8e8


0a9627f2649a
88751275b8e8

fec5e652e58f
76cc8b13a6e4
1e94d72feab0
95c961747284
0a9627f2649a
bea3348eef27
1da177e4c3f4

76cc8b13a6e4
fec5e652e58f

76cc8b13a6e4








fec5e652e58f


0a9627f2649a
1da177e4c3f4
37437bb2e1ae
1da177e4c3f4
86d804e10a37
1da177e4c3f4
734664982638
37437bb2e1ae
86d804e10a37

fd2ea0a79faa







d29f749e252b

734664982638
d29f749e252b

bea3348eef27





1da177e4c3f4

e8a0464cc950
1da177e4c3f4

fd2ea0a79faa









79d16385c7f2
1da177e4c3f4

5f286e113fa3
7b3d3e4fc685
1da177e4c3f4
5f286e113fa3
1da177e4c3f4
734664982638
37437bb2e1ae
79d16385c7f2

d29f749e252b






79d16385c7f2

e8a0464cc950
1da177e4c3f4

fd2ea0a79faa









d29f749e252b

18543a643fae
256ee435b9a9
18543a643fae

734664982638
d29f749e252b

bea3348eef27






1da177e4c3f4

e8a0464cc950
1da177e4c3f4

fd2ea0a79faa









4d29515f5a2e
d29f749e252b
734664982638
d29f749e252b

bea3348eef27





4d29515f5a2e
1da177e4c3f4
e8a0464cc950
1da177e4c3f4

4d29515f5a2e
c3f26a269c24
734664982638


4d29515f5a2e
734664982638



c5d67bd78c5d


114cf5802165

b37c0fbe3f6d















114cf5802165
c5d67bd78c5d







95c961747284
c5d67bd78c5d
114cf5802165
b37c0fbe3f6d
















114cf5802165
c5d67bd78c5d


95c961747284
c5d67bd78c5d





114cf5802165
5c4903549c05
114cf5802165

c5d67bd78c5d




c3f26a269c24

bea3348eef27





4d29515f5a2e
1da177e4c3f4



f25f4e44808f





bea3348eef27







f25f4e44808f

fd2ea0a79faa
7b3d3e4fc685

f25f4e44808f

bea3348eef27






f25f4e44808f

fd2ea0a79faa
f25f4e44808f



7b3d3e4fc685
f25f4e44808f

bea3348eef27






4d29515f5a2e

f25f4e44808f
fd2ea0a79faa
7b3d3e4fc685

f25f4e44808f

4d29515f5a2e

668f895a85b0


bea3348eef27







f25f4e44808f

fd2ea0a79faa
f25f4e44808f



734664982638
37437bb2e1ae
f25f4e44808f

537c00de1c9b
537c00de1c9b










a3d22a68d752









bea3348eef27




bea3348eef27
4d29515f5a2e
f25f4e44808f
a02cec2155fb
f25f4e44808f
1da177e4c3f4
e6484930d7c7

f0796d5c73e5
62fe0b40abb3










3171d026291d


ee6ae1a1d58c





3171d026291d







16917b87a23b


1da177e4c3f4
0ef4730927c5

1da177e4c3f4
bea3348eef27
1da177e4c3f4

0ef4730927c5

1da177e4c3f4
56079431b6ba
1da177e4c3f4
1da177e4c3f4

1da177e4c3f4
c7c4b3b6e976
d565b0a1a9b6
2e71a6f8084e
76620aafd66f
c7c4b3b6e976
76620aafd66f






ab95bfe01f98
93e2c32b5cb2

ab95bfe01f98

95f050bf7f64
881d966b48b0

95c961747284
bd38081160bb
95c961747284
bd38081160bb
cf04a4c764cd
0b815a1a6d43
ce286d327341

1da177e4c3f4
cbda10fa97d7
1da177e4c3f4

4bf84c35c65f

f6a78bfcb141
fd2ea0a79faa

445409602c09

1da177e4c3f4
20380731bc28
1da177e4c3f4



bea3348eef27



9ef4429b31b8
bea3348eef27
1da177e4c3f4

933393f58fef
1da177e4c3f4

bea3348eef27



9ef4429b31b8
bea3348eef27
153330618691

933393f58fef
153330618691
1da177e4c3f4



b00055aacdb1



1da177e4c3f4

8f4cccbbd92f
1da177e4c3f4
e014debecd3e
1da177e4c3f4
bea3348eef27





4d29515f5a2e
1da177e4c3f4



9d21493b4beb

1da177e4c3f4

0a242efc4fb8
1da177e4c3f4
0a242efc4fb8
1da177e4c3f4
bea3348eef27












b00055aacdb1





bea3348eef27





b00055aacdb1





bea3348eef27





4d29515f5a2e
b00055aacdb1




bea3348eef27





4d29515f5a2e
d94d9fee9fa4
b00055aacdb1



bea3348eef27





4d29515f5a2e
1da177e4c3f4



56079431b6ba
1da177e4c3f4
56079431b6ba
1da177e4c3f4



1da177e4c3f4













































c773e847ea8f
932ff279a43a
c773e847ea8f

22dd74950172

fd2ea0a79faa





4d29515f5a2e
c3f26a269c24
4d29515f5a2e
c3f26a269c24
















08baf561083b





d29f749e252b


d29f749e252b


22dd74950172

e8a0464cc950
c3f26a269c24
c773e847ea8f
c3f26a269c24

e8a0464cc950

c3f26a269c24






e8a0464cc950
c3f26a269c24

e8a0464cc950
932ff279a43a



e8a0464cc950

932ff279a43a

932ff279a43a

e8a0464cc950



c773e847ea8f
c3f26a269c24




7b3d3e4fc685
c3f26a269c24

932ff279a43a



e8a0464cc950

932ff279a43a

c773e847ea8f
22dd74950172
c773e847ea8f
22dd74950172


c773e847ea8f
22dd74950172
c773e847ea8f
22dd74950172


1da177e4c3f4

fd2ea0a79faa
c3f26a269c24
fd2ea0a79faa
c3f26a269c24

fd2ea0a79faa

c3f26a269c24

fd2ea0a79faa
c3f26a269c24
fd2ea0a79faa
c3f26a269c24
1da177e4c3f4

e308a5d806c8




2429f7ac2ef4




e308a5d806c8














f001fde5eadd
31278e714713
f001fde5eadd


31278e714713
f001fde5eadd
1da177e4c3f4




36909ea43814
f25f4e44808f
36909ea43814
f25f4e44808f
36909ea43814




1da177e4c3f4

f001fde5eadd
22bedad3ce11















f001fde5eadd
6b6e27255f29
f001fde5eadd
6b6e27255f29
f001fde5eadd






a748ee242681



6b6e27255f29


a748ee242681



f001fde5eadd
22bedad3ce11
6b6e27255f29




22bedad3ce11



f001fde5eadd
4417da668c00


dad9b335c694

1da177e4c3f4
ee89bab14e85
d8a33ac435c4
1da177e4c3f4
881d966b48b0
d77535162e73

77a1abf54f4b

eeda3fd64f75
1da177e4c3f4
3b098e2d7c69
1da177e4c3f4
0a14842f5a3c
9ff162a8b96c











84fa7933a33f
12b0004d1d1e

05e8ef4ab2d8

12b0004d1d1e






fb286bb2990a






1da177e4c3f4



20380731bc28
900ff8c63214


20380731bc28

b8a9787eddb0


04600794958f

3019de124b9f
6579e57b31d7
20380731bc28

c8f44affb724

5455c6998d34


c8f44affb724

6cb6a27c45ce
5455c6998d34
afe12cc86b0b
7f353bf29e16
fc4a74896632


c8f44affb724
58e998c6d239
4d29515f5a2e
576a30eb6453
c8f44affb724
0345e1864283








d6b4991ad5d1
576a30eb6453

4d29515f5a2e
bcd76111178e
278b2513f761
21dc33015745
bcd76111178e

4d29515f5a2e

7967168cefdb
fc741216db15
cdbee74ce74c

7967168cefdb

82cc1a7a5687





4d29515f5a2e
1765a575334f



3bdc0eba0b8b




505d4f73dda9
b1b67dd45a6b
571ba4230381










b9075fa968a0
















571ba4230381
8909c9ad8ff0


b558c96ffa53
571ba4230381

ffa10cb47a94
571ba4230381
b558c96ffa53


571ba4230381




























b3d95c5c93d4







f45f4321d2c9





b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
f45f4321d2c9
b3d95c5c93d4
0053ea9c34a4
b3d95c5c93d4


b5fb0a03214d
b3d95c5c93d4
0053ea9c34a4


b3d95c5c93d4









bcfcc450baaa
b3d95c5c93d4



a4ed89cb92f9
b3d95c5c93d4


571ba4230381
900ff8c63214





























385a154cac87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928








                                                                            
                         


                                                                
                                                    












                                                                             
                         
                        
                      
                        
                         


                          
                         
                          
                            
                            
                                       
 
                          
                              
                    
                 

                      
                               
 
                                  
                            
                                 
 
                    
              
                  

                     



                                                                      


                                                                          



                                                                                 

                                                                   
 



                                                                   


















                                                                              



                                                                              
 


                                                                                
                                                              

                                                                   
                                  
                                    
 
                
                                                                      


                                                                              


                                   

















                                                                            



                                                                       
 
                                                   




                                  
                           
                         
     
                         

      

                                                                      





                                       

                                                                   
   
 
                         








                                   
                                   
                                         




                                         




                                            



                                      



                         
                 

                                    

      



                   



                                                   



                                         
                                         
                                       
                                           
                                         


                                         




                                      



                                                                        
 



                                                                  
 

                                                                  
                                          
                                                    
 
                 
                               
                              
                                



                                                                               
                                                               













                                                                             
                                                                                            
                                            
                                                                                                    
 


                                                                       
                                                                

                                                                          
                                                                                          




                                                             




                                                              
                     

                             
                               

                                       




                                                                        
                                       






                               
                                               

  












                                                                      
                                          



                                                                   
      
                                     
                                          
                                     
                                         

  
      
                                                       
                                                     
                                                                            

  
                 





                        
                                     
 































                                                                               
                                                           















                                                                             
 
                                                   
 
                                                              



                                                       





                                                           

                                                         
   
                                                            
 

                                                               














                                                               
                                                                           
                                                            


                                       
                            
         
                     

 





                                                

                                                   









                                                      
                                               
                                                             
                          
                                                 















                                                       

















                                                                
                           

                                 
                             



                                                                           
  








                                                                             
 
                     


                   
                                     

                                                
                   

                                     


                                               




                                                                        



                                                            





                                               





                                      
                               
 




                                                                           
                            









                                                                                 
                 








                                                                        
                                                                            
 
  


                                                                           


                     
                   

                                
                            










                                                                            
                                           









                                                                              
                           























                                                                             
                                                             
 




                                                                      

                                                         


                                                        
                                             
                               
                       
 










                                                                        
                                                                            







                                                                          
                                         




                                                                         







                                                                
















                                                         

                                                                   

                                                                       


















                                                                               

                                                         
                                                     

                                                             





                                                                        





                                                                          

                                                                  


                                                                      
                                                                  



















                                                                            
                                                  


                                                                    
                                                                       
                                                           
                                                                     
                                                                
                                                         

                                                                
                                                                       




                                                                        
  
                                                                          


                                                                                 
                                                                           



                                                                                 




                                                                            
                                                                            

                                                              


                                                                               




                                                                              
  





























                                                                              






                                                                               





                                                                              





                                                                              
  
                                                              




                                                                              

                                          

                                                                



                                                                        
                                                                               



                                                                                

                                                             
                                                           
                                          

                                                             
                                                




                                                                         



                                                                          







                                                                              





                                                                      
                                                                       


                                                                           

                                                                              
                                                                           

                                                                              
                                                                             

                                                                            

                                                                         



                                                                          

                                                                           

                                                                                        

                                                                          
                                                                              
                                                                           
                                                                               

                                                                            
                                                                               
                                                                            

                                                                               
                                                                               
      





                                                                                

                                                                              


                                                                               




                                                                                
                                                                               
                           

                                                                            





                                                                              



                                                                               

                                                                                             

      
                              



                                                                           
      
 





                                                                               



                                                                               

                                                                                
                                                                           
                                                                                
                                                                            
                                                                          

                                                                 
                                                                   
                                                                      
                                                                         

                                                                 
                                                                   
                                                                      
                                                                          



                                                                            




                                                                             

                                                                             

                                                                             

                                                                             

  
  








                                                                        
                   



                                                                          
                            

                                               
 
                                                                    
                                           
 

                                         














                                                                          

                                      
                                         
                                          
                                           
 
                                              
                                         
                                      
                                            
                                     
                                                
                                                          
                                              





                                                              
 



                                                          
                                      


                                                                              
 
                          




                                                                              
      

                                                
                                              
 


                                            
                                                                          

                                                                                       
                                       

                                                                                      


                                                                            


                                                                          
                                                                          

                                                                                  
 






                                                                               
                                     
                                                                                   
                                                                                  
                                                                                  
                                               

                                                                              
                                               

                                                                             
                                           

                                            
 

                                        
 
                                 
                                                               
      
                              
                                                                       
      
                                                                          
                                                                          
                                                                          
                                                                        
                                                                         

                                                                               
 
  
                                                                       
   







                                                                                  

                                                                           
                                                             



                                                                            

                                                                     

                                                                                  
 
                   
                                             
      
 
                 

                                     
                                                                     
                                              


                                                            






                                                                      
      
 

                                                 
 
                                                 



                                           
                                                                  

                                                                      
                                              



                                                             


                                                     
                                                                                  
                                               
 
                 
                                            
      
 
                                                                     




                                                                       




                                                                                  
                                                 
                                             
 

                                          


                                            
                                                
 

                                               
                                                                          


                                                                         
                                                                        


                                                         




                                       
 

                                                                     
 
                     
                                                
      
 
                    

                                                             
      
 
                               


                                                                             
                                                                           
                                                                          
                                                                         
          
                  
                                           

                                          
 
                                  
                                    

                                                                              


                                                  
 


                                                                       

                                             
 
                 
                                              
                                               
      


                                                     
 
                           


                                                 


                                          

                                                                    
 

                                                 

                                         

                                           
  
                                                             

                                  
 
             


















































                                                                             

















                                                                            

                                                                  
                                                                         
 





                                                 
                                       


             
                                                         

                    

                                    


      









                                                               









                                                                   





                                                        
                                                             
 
                                                                            

 


                                                                           
                                                                    
 





                                                                             









                                                                              

                                                                        
 





                                                                             


                                              


                                                                         


                               


                                                                           



                                                                               



                                                                     

                           
                     

                                   


                                                          


                                        


                                                 


                                                          
 
                    





                                                                               

                                                                      



                                                
                          
                                                                    
                                                                            
                                                                       


                                                                       





                                                                               

  

                           






















                                                                             
                                      








                                                                               

                                                                                      
                                                                       
 
 

                                                                       

                                                                               

                                                                           



                                                                                

                                                                            
                                                                           
 




                                                                        
                           



                                                                       





                                                                            
                                                            


                                                                       




                                                                  
 






                                                                                   

                                                                                

                                                                                   

                                                                                       


                                                                  


                                                                        
 

                                                                                            
                                                                                    
                                                                                        
                                                                                      


                                                                                 
                                                                
                                                                  

                                                                   

                                                                           
                                                                          




                                                               
                                                                         

                                                            
                                                                  
                                                                  
 

                                                                                  
                                                                                    



                                                            

















                                                                      

                                                            
 

                                                
 



                                                                             
 


                                                                               


                                      

                                        
                                  
 
 

                                                           
                                                              

 

                                                               

                                                       

 

                                                                              
                                                                       
                                                   
 
                                                         
                         

                                                                          

 




                                                             
                                                        
                         
                                                  

 







                                                                                        
                                                
   
                     
                                              
                                                     
                                          
                                                  
                                              
 
                   



                                              
 
                 


                                                                 
                                                                 

                                              
                                                 
                                                 
      
                                        
                                                
                                        

  
                                                                 

                 








                                                                      


      
                                                           
 
                                              
 
                                                                 
 
                                                 
                                             

 







                                                                  

                                                                       
                                                             

 





                                                                      

                                                            
                                                          

 









                                                                       
                                                                      

                          
                             
                                                
                       
         
      
                                                                          
                                                   

 






                                                                      

                                                           
                                                         

 









                                                                       

                                                                      
                                  
                                                                                          

                       
                                                           

 






                                                                      

                                                           
                                                         

 









                                                                       
                                                                               
 
                                                                   

 





                                                                     
                                                                    
 
                                                                   

 
                                                                           
 


                                                       
                                                                                     



                                                                 


                                                                       

                                           















                                                                           
      







                                                                                
                                                                                   
 
                 
















                                                                            
      


                                                                 
                                                                                





                                                                            
                 
                                                       

                           




                                                                   

 





                                               
                                                              



                                                         





                                                                     







                                                                             

                                                                                
                                                                         

                                  

 






                                                                            

                                                                               
                                                                         



                           
                                 

 






                                                                             

                                                                         
 
                                                                         

                                           

 

                                                                       


                                                                         







                                                                              

                                                                               
                                                                         



                           
                                                                    
                                             

 
                 










                                                                            









                                                                              




                                                                         
   
                                                                    
 
                                      
 
 

                                                               
 










                                                                      


                                                                               





                                                                         







                                                                          


                                                  
                                                     

                                                                           
   
                                                   

                                                       

                                                                            
   
                                                   
 

                                                         
                                                               
                                                                  
                                                              
                                                                                 
                                                                 
                                                                 






                                                            
                                                             

                                                                    

                                                                 
                                                         

                                                                                    
                                                                 
                                                                                    
                                                                            
                                                                                        
                                                                           
                                                                                 

                                                                             
                                                              
                                                                

                                                                

                                                               
                                                                

                                                                      

                                                               
 
                                      



                                         



                                             
                                                       
   

                                                  
                                        

 



                                          
                                                        
   

                                                   
                                        
 



                                                                         



                                                                      

   
                                                       
                                                         
                                                         
 





                                                  
                                                                 



                                                              

                                                             

                                                         
                                                     
 
                                                      
 












                                                                        





                                                                 





                                                      





                                                                  





                                               
                                                              




                                                           





                                                     
                                                              
 



                                                                         





                                                             
                                                               



                                                           
                                                        
 
                                                        



                                           













































                                                                              
                                                                     
 

                                    

 





                                                               
                                                               
 
                                                 
















                                                                 





                                                             


                                                         


                                   

                                                        
                       
                
 

                                        

                                                                       






                                                                 
                                          

                                                           
         



                                                           

                           

 

                                                          



                                                                       
 




                                                               
                                          

                                          



                                                             

                             

 
                                                         
                                                         
                                                         


                                                         
                                                         
                                                         
                                                         


                                                         

                                                           
                       
                
 

                                 

                                                                       

                                          
                                         
                                       
         
                          

 




                                                          




                                                                     














                                                               
  
                                                                   


                                    
                                                                       
 




                                                                          
                                                                             
                                                                          
                                                                             
                                                




                                                                

                                                                  
 















                                                                          
                                                  
                                                                          
                                                 
                                                                          






                                                             



                                                   


                                                                              



                                                                          
 
                                                     




                                                                                



                                                                          
 


                                                                  

                                                                             
                                                                    
                                                                    
                                                                       
                                
                                                                    

                                                                                  

                                                                                 
 
                                           
                                               
                                 
                                       











                                                                                  
                                                  

                                                             

                                                                      






                                                                                






                                                               



                                                    
                     


                                      

      


                                                                         

                                                             
                                                                   
 

                                      

                                                           


                                                                          

                                                                  
                                                     
                                                    
                                                    
 


                                                                       
                                                          
 
                                                                       
 
                                                                  








                                                                                   
                                               

 
                                                                              
 
                                                                 
                                                                          

 

                                                              
 
                                                                

                                                                    

 





                                                                 
                                                              



                                                                       




                                                               
                                                                
 










                                                                   
















                                                                         
 


                                      
                                 

                                                                 
                                                                 
           


                                                                 




























                                                                    







                                                                 





                                                                 
                                                                 
                                                        
                                                                 
                                                        
                                                                 
                                                       
                                                                 
                                                      
                                                                 
                                                       
                                                                 
                                                         
                                                                 
                                                       
 
                                 


                                                                 
                                                                 
           


                                                                 









                                                                            
                                 



                                                                 
                                                                            


                                                                 
 





























                                                                             
                                
/*
 * INET		An implementation of the TCP/IP protocol suite for the LINUX
 *		operating system.  INET is implemented using the  BSD Socket
 *		interface as the means of communication with the user level.
 *
 *		Definitions for the Interfaces handler.
 *
 * Version:	@(#)dev.h	1.0.10	08/12/93
 *
 * Authors:	Ross Biro
 *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 *		Corey Minyard <wf-rch!minyard@relay.EU.net>
 *		Donald J. Becker, <becker@cesdis.gsfc.nasa.gov>
 *		Alan Cox, <alan@lxorguk.ukuu.org.uk>
 *		Bjorn Ekwall. <bj0rn@blox.se>
 *              Pekka Riikonen <priikone@poseidon.pspt.fi>
 *
 *		This program is free software; you can redistribute it and/or
 *		modify it under the terms of the GNU General Public License
 *		as published by the Free Software Foundation; either version
 *		2 of the License, or (at your option) any later version.
 *
 *		Moved to /usr/include/linux for NET3
 */
#ifndef _LINUX_NETDEVICE_H
#define _LINUX_NETDEVICE_H

#include <linux/pm_qos.h>
#include <linux/timer.h>
#include <linux/bug.h>
#include <linux/delay.h>
#include <linux/atomic.h>
#include <asm/cache.h>
#include <asm/byteorder.h>

#include <linux/percpu.h>
#include <linux/rculist.h>
#include <linux/dmaengine.h>
#include <linux/workqueue.h>
#include <linux/dynamic_queue_limits.h>

#include <linux/ethtool.h>
#include <net/net_namespace.h>
#include <net/dsa.h>
#ifdef CONFIG_DCB
#include <net/dcbnl.h>
#endif
#include <net/netprio_cgroup.h>

#include <linux/netdev_features.h>
#include <linux/neighbour.h>
#include <uapi/linux/netdevice.h>

struct netpoll_info;
struct device;
struct phy_device;
/* 802.11 specific */
struct wireless_dev;
					/* source back-compat hooks */
#define SET_ETHTOOL_OPS(netdev,ops) \
	( (netdev)->ethtool_ops = (ops) )

extern void netdev_set_default_ethtool_ops(struct net_device *dev,
					   const struct ethtool_ops *ops);

/* hardware address assignment types */
#define NET_ADDR_PERM		0	/* address is permanent (default) */
#define NET_ADDR_RANDOM		1	/* address is generated randomly */
#define NET_ADDR_STOLEN		2	/* address is stolen from other device */
#define NET_ADDR_SET		3	/* address is set using
					 * dev_set_mac_address() */

/* Backlog congestion levels */
#define NET_RX_SUCCESS		0	/* keep 'em coming, baby */
#define NET_RX_DROP		1	/* packet dropped */

/*
 * Transmit return codes: transmit return codes originate from three different
 * namespaces:
 *
 * - qdisc return codes
 * - driver transmit return codes
 * - errno values
 *
 * Drivers are allowed to return any one of those in their hard_start_xmit()
 * function. Real network devices commonly used with qdiscs should only return
 * the driver transmit return codes though - when qdiscs are used, the actual
 * transmission happens asynchronously, so the value is not propagated to
 * higher layers. Virtual network devices transmit synchronously, in this case
 * the driver transmit return codes are consumed by dev_queue_xmit(), all
 * others are propagated to higher layers.
 */

/* qdisc ->enqueue() return codes. */
#define NET_XMIT_SUCCESS	0x00
#define NET_XMIT_DROP		0x01	/* skb dropped			*/
#define NET_XMIT_CN		0x02	/* congestion notification	*/
#define NET_XMIT_POLICED	0x03	/* skb is shot by police	*/
#define NET_XMIT_MASK		0x0f	/* qdisc flags in net/sch_generic.h */

/* NET_XMIT_CN is special. It does not guarantee that this packet is lost. It
 * indicates that the device will soon be dropping packets, or already drops
 * some packets of the same priority; prompting us to send less aggressively. */
#define net_xmit_eval(e)	((e) == NET_XMIT_CN ? 0 : (e))
#define net_xmit_errno(e)	((e) != NET_XMIT_CN ? -ENOBUFS : 0)

/* Driver transmit return codes */
#define NETDEV_TX_MASK		0xf0

enum netdev_tx {
	__NETDEV_TX_MIN	 = INT_MIN,	/* make sure enum is signed */
	NETDEV_TX_OK	 = 0x00,	/* driver took care of packet */
	NETDEV_TX_BUSY	 = 0x10,	/* driver tx path was busy*/
	NETDEV_TX_LOCKED = 0x20,	/* driver tx lock was already taken */
};
typedef enum netdev_tx netdev_tx_t;

/*
 * Current order: NETDEV_TX_MASK > NET_XMIT_MASK >= 0 is significant;
 * hard_start_xmit() return < NET_XMIT_MASK means skb was consumed.
 */
static inline bool dev_xmit_complete(int rc)
{
	/*
	 * Positive cases with an skb consumed by a driver:
	 * - successful transmission (rc == NETDEV_TX_OK)
	 * - error while transmitting (rc < 0)
	 * - error while queueing to a different device (rc & NET_XMIT_MASK)
	 */
	if (likely(rc < NET_XMIT_MASK))
		return true;

	return false;
}

/*
 *	Compute the worst case header length according to the protocols
 *	used.
 */

#if defined(CONFIG_WLAN) || IS_ENABLED(CONFIG_AX25)
# if defined(CONFIG_MAC80211_MESH)
#  define LL_MAX_HEADER 128
# else
#  define LL_MAX_HEADER 96
# endif
#elif IS_ENABLED(CONFIG_TR)
# define LL_MAX_HEADER 48
#else
# define LL_MAX_HEADER 32
#endif

#if !IS_ENABLED(CONFIG_NET_IPIP) && !IS_ENABLED(CONFIG_NET_IPGRE) && \
    !IS_ENABLED(CONFIG_IPV6_SIT) && !IS_ENABLED(CONFIG_IPV6_TUNNEL)
#define MAX_HEADER LL_MAX_HEADER
#else
#define MAX_HEADER (LL_MAX_HEADER + 48)
#endif

/*
 *	Old network device statistics. Fields are native words
 *	(unsigned long) so they can be read and written atomically.
 */

struct net_device_stats {
	unsigned long	rx_packets;
	unsigned long	tx_packets;
	unsigned long	rx_bytes;
	unsigned long	tx_bytes;
	unsigned long	rx_errors;
	unsigned long	tx_errors;
	unsigned long	rx_dropped;
	unsigned long	tx_dropped;
	unsigned long	multicast;
	unsigned long	collisions;
	unsigned long	rx_length_errors;
	unsigned long	rx_over_errors;
	unsigned long	rx_crc_errors;
	unsigned long	rx_frame_errors;
	unsigned long	rx_fifo_errors;
	unsigned long	rx_missed_errors;
	unsigned long	tx_aborted_errors;
	unsigned long	tx_carrier_errors;
	unsigned long	tx_fifo_errors;
	unsigned long	tx_heartbeat_errors;
	unsigned long	tx_window_errors;
	unsigned long	rx_compressed;
	unsigned long	tx_compressed;
};


#include <linux/cache.h>
#include <linux/skbuff.h>

#ifdef CONFIG_RPS
#include <linux/static_key.h>
extern struct static_key rps_needed;
#endif

struct neighbour;
struct neigh_parms;
struct sk_buff;

struct netdev_hw_addr {
	struct list_head	list;
	unsigned char		addr[MAX_ADDR_LEN];
	unsigned char		type;
#define NETDEV_HW_ADDR_T_LAN		1
#define NETDEV_HW_ADDR_T_SAN		2
#define NETDEV_HW_ADDR_T_SLAVE		3
#define NETDEV_HW_ADDR_T_UNICAST	4
#define NETDEV_HW_ADDR_T_MULTICAST	5
	bool			synced;
	bool			global_use;
	int			refcount;
	struct rcu_head		rcu_head;
};

struct netdev_hw_addr_list {
	struct list_head	list;
	int			count;
};

#define netdev_hw_addr_list_count(l) ((l)->count)
#define netdev_hw_addr_list_empty(l) (netdev_hw_addr_list_count(l) == 0)
#define netdev_hw_addr_list_for_each(ha, l) \
	list_for_each_entry(ha, &(l)->list, list)

#define netdev_uc_count(dev) netdev_hw_addr_list_count(&(dev)->uc)
#define netdev_uc_empty(dev) netdev_hw_addr_list_empty(&(dev)->uc)
#define netdev_for_each_uc_addr(ha, dev) \
	netdev_hw_addr_list_for_each(ha, &(dev)->uc)

#define netdev_mc_count(dev) netdev_hw_addr_list_count(&(dev)->mc)
#define netdev_mc_empty(dev) netdev_hw_addr_list_empty(&(dev)->mc)
#define netdev_for_each_mc_addr(ha, dev) \
	netdev_hw_addr_list_for_each(ha, &(dev)->mc)

struct hh_cache {
	u16		hh_len;
	u16		__pad;
	seqlock_t	hh_lock;

	/* cached hardware header; allow for machine alignment needs.        */
#define HH_DATA_MOD	16
#define HH_DATA_OFF(__len) \
	(HH_DATA_MOD - (((__len - 1) & (HH_DATA_MOD - 1)) + 1))
#define HH_DATA_ALIGN(__len) \
	(((__len)+(HH_DATA_MOD-1))&~(HH_DATA_MOD - 1))
	unsigned long	hh_data[HH_DATA_ALIGN(LL_MAX_HEADER) / sizeof(long)];
};

/* Reserve HH_DATA_MOD byte aligned hard_header_len, but at least that much.
 * Alternative is:
 *   dev->hard_header_len ? (dev->hard_header_len +
 *                           (HH_DATA_MOD - 1)) & ~(HH_DATA_MOD - 1) : 0
 *
 * We could use other alignment values, but we must maintain the
 * relationship HH alignment <= LL alignment.
 */
#define LL_RESERVED_SPACE(dev) \
	((((dev)->hard_header_len+(dev)->needed_headroom)&~(HH_DATA_MOD - 1)) + HH_DATA_MOD)
#define LL_RESERVED_SPACE_EXTRA(dev,extra) \
	((((dev)->hard_header_len+(dev)->needed_headroom+(extra))&~(HH_DATA_MOD - 1)) + HH_DATA_MOD)

struct header_ops {
	int	(*create) (struct sk_buff *skb, struct net_device *dev,
			   unsigned short type, const void *daddr,
			   const void *saddr, unsigned int len);
	int	(*parse)(const struct sk_buff *skb, unsigned char *haddr);
	int	(*rebuild)(struct sk_buff *skb);
	int	(*cache)(const struct neighbour *neigh, struct hh_cache *hh, __be16 type);
	void	(*cache_update)(struct hh_cache *hh,
				const struct net_device *dev,
				const unsigned char *haddr);
};

/* These flag bits are private to the generic network queueing
 * layer, they may not be explicitly referenced by any other
 * code.
 */

enum netdev_state_t {
	__LINK_STATE_START,
	__LINK_STATE_PRESENT,
	__LINK_STATE_NOCARRIER,
	__LINK_STATE_LINKWATCH_PENDING,
	__LINK_STATE_DORMANT,
};


/*
 * This structure holds at boot time configured netdevice settings. They
 * are then used in the device probing.
 */
struct netdev_boot_setup {
	char name[IFNAMSIZ];
	struct ifmap map;
};
#define NETDEV_BOOT_SETUP_MAX 8

extern int __init netdev_boot_setup(char *str);

/*
 * Structure for NAPI scheduling similar to tasklet but with weighting
 */
struct napi_struct {
	/* The poll_list must only be managed by the entity which
	 * changes the state of the NAPI_STATE_SCHED bit.  This means
	 * whoever atomically sets that bit can add this napi_struct
	 * to the per-cpu poll_list, and whoever clears that bit
	 * can remove from the list right before clearing the bit.
	 */
	struct list_head	poll_list;

	unsigned long		state;
	int			weight;
	unsigned int		gro_count;
	int			(*poll)(struct napi_struct *, int);
#ifdef CONFIG_NETPOLL
	spinlock_t		poll_lock;
	int			poll_owner;
#endif
	struct net_device	*dev;
	struct sk_buff		*gro_list;
	struct sk_buff		*skb;
	struct list_head	dev_list;
};

enum {
	NAPI_STATE_SCHED,	/* Poll is scheduled */
	NAPI_STATE_DISABLE,	/* Disable pending */
	NAPI_STATE_NPSVC,	/* Netpoll - don't dequeue from poll_list */
};

enum gro_result {
	GRO_MERGED,
	GRO_MERGED_FREE,
	GRO_HELD,
	GRO_NORMAL,
	GRO_DROP,
};
typedef enum gro_result gro_result_t;

/*
 * enum rx_handler_result - Possible return values for rx_handlers.
 * @RX_HANDLER_CONSUMED: skb was consumed by rx_handler, do not process it
 * further.
 * @RX_HANDLER_ANOTHER: Do another round in receive path. This is indicated in
 * case skb->dev was changed by rx_handler.
 * @RX_HANDLER_EXACT: Force exact delivery, no wildcard.
 * @RX_HANDLER_PASS: Do nothing, passe the skb as if no rx_handler was called.
 *
 * rx_handlers are functions called from inside __netif_receive_skb(), to do
 * special processing of the skb, prior to delivery to protocol handlers.
 *
 * Currently, a net_device can only have a single rx_handler registered. Trying
 * to register a second rx_handler will return -EBUSY.
 *
 * To register a rx_handler on a net_device, use netdev_rx_handler_register().
 * To unregister a rx_handler on a net_device, use
 * netdev_rx_handler_unregister().
 *
 * Upon return, rx_handler is expected to tell __netif_receive_skb() what to
 * do with the skb.
 *
 * If the rx_handler consumed to skb in some way, it should return
 * RX_HANDLER_CONSUMED. This is appropriate when the rx_handler arranged for
 * the skb to be delivered in some other ways.
 *
 * If the rx_handler changed skb->dev, to divert the skb to another
 * net_device, it should return RX_HANDLER_ANOTHER. The rx_handler for the
 * new device will be called if it exists.
 *
 * If the rx_handler consider the skb should be ignored, it should return
 * RX_HANDLER_EXACT. The skb will only be delivered to protocol handlers that
 * are registered on exact device (ptype->dev == skb->dev).
 *
 * If the rx_handler didn't changed skb->dev, but want the skb to be normally
 * delivered, it should return RX_HANDLER_PASS.
 *
 * A device without a registered rx_handler will behave as if rx_handler
 * returned RX_HANDLER_PASS.
 */

enum rx_handler_result {
	RX_HANDLER_CONSUMED,
	RX_HANDLER_ANOTHER,
	RX_HANDLER_EXACT,
	RX_HANDLER_PASS,
};
typedef enum rx_handler_result rx_handler_result_t;
typedef rx_handler_result_t rx_handler_func_t(struct sk_buff **pskb);

extern void __napi_schedule(struct napi_struct *n);

static inline bool napi_disable_pending(struct napi_struct *n)
{
	return test_bit(NAPI_STATE_DISABLE, &n->state);
}

/**
 *	napi_schedule_prep - check if napi can be scheduled
 *	@n: napi context
 *
 * Test if NAPI routine is already running, and if not mark
 * it as running.  This is used as a condition variable
 * insure only one NAPI poll instance runs.  We also make
 * sure there is no pending NAPI disable.
 */
static inline bool napi_schedule_prep(struct napi_struct *n)
{
	return !napi_disable_pending(n) &&
		!test_and_set_bit(NAPI_STATE_SCHED, &n->state);
}

/**
 *	napi_schedule - schedule NAPI poll
 *	@n: napi context
 *
 * Schedule NAPI poll routine to be called if it is not already
 * running.
 */
static inline void napi_schedule(struct napi_struct *n)
{
	if (napi_schedule_prep(n))
		__napi_schedule(n);
}

/* Try to reschedule poll. Called by dev->poll() after napi_complete().  */
static inline bool napi_reschedule(struct napi_struct *napi)
{
	if (napi_schedule_prep(napi)) {
		__napi_schedule(napi);
		return true;
	}
	return false;
}

/**
 *	napi_complete - NAPI processing complete
 *	@n: napi context
 *
 * Mark NAPI processing as complete.
 */
extern void __napi_complete(struct napi_struct *n);
extern void napi_complete(struct napi_struct *n);

/**
 *	napi_disable - prevent NAPI from scheduling
 *	@n: napi context
 *
 * Stop NAPI from being scheduled on this context.
 * Waits till any outstanding processing completes.
 */
static inline void napi_disable(struct napi_struct *n)
{
	set_bit(NAPI_STATE_DISABLE, &n->state);
	while (test_and_set_bit(NAPI_STATE_SCHED, &n->state))
		msleep(1);
	clear_bit(NAPI_STATE_DISABLE, &n->state);
}

/**
 *	napi_enable - enable NAPI scheduling
 *	@n: napi context
 *
 * Resume NAPI from being scheduled on this context.
 * Must be paired with napi_disable.
 */
static inline void napi_enable(struct napi_struct *n)
{
	BUG_ON(!test_bit(NAPI_STATE_SCHED, &n->state));
	smp_mb__before_clear_bit();
	clear_bit(NAPI_STATE_SCHED, &n->state);
}

#ifdef CONFIG_SMP
/**
 *	napi_synchronize - wait until NAPI is not running
 *	@n: napi context
 *
 * Wait until NAPI is done being scheduled on this context.
 * Waits till any outstanding processing completes but
 * does not disable future activations.
 */
static inline void napi_synchronize(const struct napi_struct *n)
{
	while (test_bit(NAPI_STATE_SCHED, &n->state))
		msleep(1);
}
#else
# define napi_synchronize(n)	barrier()
#endif

enum netdev_queue_state_t {
	__QUEUE_STATE_DRV_XOFF,
	__QUEUE_STATE_STACK_XOFF,
	__QUEUE_STATE_FROZEN,
#define QUEUE_STATE_ANY_XOFF ((1 << __QUEUE_STATE_DRV_XOFF)		| \
			      (1 << __QUEUE_STATE_STACK_XOFF))
#define QUEUE_STATE_ANY_XOFF_OR_FROZEN (QUEUE_STATE_ANY_XOFF		| \
					(1 << __QUEUE_STATE_FROZEN))
};
/*
 * __QUEUE_STATE_DRV_XOFF is used by drivers to stop the transmit queue.  The
 * netif_tx_* functions below are used to manipulate this flag.  The
 * __QUEUE_STATE_STACK_XOFF flag is used by the stack to stop the transmit
 * queue independently.  The netif_xmit_*stopped functions below are called
 * to check if the queue has been stopped by the driver or stack (either
 * of the XOFF bits are set in the state).  Drivers should not need to call
 * netif_xmit*stopped functions, they should only be using netif_tx_*.
 */

struct netdev_queue {
/*
 * read mostly part
 */
	struct net_device	*dev;
	struct Qdisc		*qdisc;
	struct Qdisc		*qdisc_sleeping;
#ifdef CONFIG_SYSFS
	struct kobject		kobj;
#endif
#if defined(CONFIG_XPS) && defined(CONFIG_NUMA)
	int			numa_node;
#endif
/*
 * write mostly part
 */
	spinlock_t		_xmit_lock ____cacheline_aligned_in_smp;
	int			xmit_lock_owner;
	/*
	 * please use this field instead of dev->trans_start
	 */
	unsigned long		trans_start;

	/*
	 * Number of TX timeouts for this queue
	 * (/sys/class/net/DEV/Q/trans_timeout)
	 */
	unsigned long		trans_timeout;

	unsigned long		state;

#ifdef CONFIG_BQL
	struct dql		dql;
#endif
} ____cacheline_aligned_in_smp;

static inline int netdev_queue_numa_node_read(const struct netdev_queue *q)
{
#if defined(CONFIG_XPS) && defined(CONFIG_NUMA)
	return q->numa_node;
#else
	return NUMA_NO_NODE;
#endif
}

static inline void netdev_queue_numa_node_write(struct netdev_queue *q, int node)
{
#if defined(CONFIG_XPS) && defined(CONFIG_NUMA)
	q->numa_node = node;
#endif
}

#ifdef CONFIG_RPS
/*
 * This structure holds an RPS map which can be of variable length.  The
 * map is an array of CPUs.
 */
struct rps_map {
	unsigned int len;
	struct rcu_head rcu;
	u16 cpus[0];
};
#define RPS_MAP_SIZE(_num) (sizeof(struct rps_map) + ((_num) * sizeof(u16)))

/*
 * The rps_dev_flow structure contains the mapping of a flow to a CPU, the
 * tail pointer for that CPU's input queue at the time of last enqueue, and
 * a hardware filter index.
 */
struct rps_dev_flow {
	u16 cpu;
	u16 filter;
	unsigned int last_qtail;
};
#define RPS_NO_FILTER 0xffff

/*
 * The rps_dev_flow_table structure contains a table of flow mappings.
 */
struct rps_dev_flow_table {
	unsigned int mask;
	struct rcu_head rcu;
	struct work_struct free_work;
	struct rps_dev_flow flows[0];
};
#define RPS_DEV_FLOW_TABLE_SIZE(_num) (sizeof(struct rps_dev_flow_table) + \
    ((_num) * sizeof(struct rps_dev_flow)))

/*
 * The rps_sock_flow_table contains mappings of flows to the last CPU
 * on which they were processed by the application (set in recvmsg).
 */
struct rps_sock_flow_table {
	unsigned int mask;
	u16 ents[0];
};
#define	RPS_SOCK_FLOW_TABLE_SIZE(_num) (sizeof(struct rps_sock_flow_table) + \
    ((_num) * sizeof(u16)))

#define RPS_NO_CPU 0xffff

static inline void rps_record_sock_flow(struct rps_sock_flow_table *table,
					u32 hash)
{
	if (table && hash) {
		unsigned int cpu, index = hash & table->mask;

		/* We only give a hint, preemption can change cpu under us */
		cpu = raw_smp_processor_id();

		if (table->ents[index] != cpu)
			table->ents[index] = cpu;
	}
}

static inline void rps_reset_sock_flow(struct rps_sock_flow_table *table,
				       u32 hash)
{
	if (table && hash)
		table->ents[hash & table->mask] = RPS_NO_CPU;
}

extern struct rps_sock_flow_table __rcu *rps_sock_flow_table;

#ifdef CONFIG_RFS_ACCEL
extern bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index,
				u32 flow_id, u16 filter_id);
#endif

/* This structure contains an instance of an RX queue. */
struct netdev_rx_queue {
	struct rps_map __rcu		*rps_map;
	struct rps_dev_flow_table __rcu	*rps_flow_table;
	struct kobject			kobj;
	struct net_device		*dev;
} ____cacheline_aligned_in_smp;
#endif /* CONFIG_RPS */

#ifdef CONFIG_XPS
/*
 * This structure holds an XPS map which can be of variable length.  The
 * map is an array of queues.
 */
struct xps_map {
	unsigned int len;
	unsigned int alloc_len;
	struct rcu_head rcu;
	u16 queues[0];
};
#define XPS_MAP_SIZE(_num) (sizeof(struct xps_map) + ((_num) * sizeof(u16)))
#define XPS_MIN_MAP_ALLOC ((L1_CACHE_BYTES - sizeof(struct xps_map))	\
    / sizeof(u16))

/*
 * This structure holds all XPS maps for device.  Maps are indexed by CPU.
 */
struct xps_dev_maps {
	struct rcu_head rcu;
	struct xps_map __rcu *cpu_map[0];
};
#define XPS_DEV_MAPS_SIZE (sizeof(struct xps_dev_maps) +		\
    (nr_cpu_ids * sizeof(struct xps_map *)))
#endif /* CONFIG_XPS */

#define TC_MAX_QUEUE	16
#define TC_BITMASK	15
/* HW offloaded queuing disciplines txq count and offset maps */
struct netdev_tc_txq {
	u16 count;
	u16 offset;
};

#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
/*
 * This structure is to hold information about the device
 * configured to run FCoE protocol stack.
 */
struct netdev_fcoe_hbainfo {
	char	manufacturer[64];
	char	serial_number[64];
	char	hardware_version[64];
	char	driver_version[64];
	char	optionrom_version[64];
	char	firmware_version[64];
	char	model[256];
	char	model_description[256];
};
#endif

/*
 * This structure defines the management hooks for network devices.
 * The following hooks can be defined; unless noted otherwise, they are
 * optional and can be filled with a null pointer.
 *
 * int (*ndo_init)(struct net_device *dev);
 *     This function is called once when network device is registered.
 *     The network device can use this to any late stage initializaton
 *     or semantic validattion. It can fail with an error code which will
 *     be propogated back to register_netdev
 *
 * void (*ndo_uninit)(struct net_device *dev);
 *     This function is called when device is unregistered or when registration
 *     fails. It is not called if init fails.
 *
 * int (*ndo_open)(struct net_device *dev);
 *     This function is called when network device transistions to the up
 *     state.
 *
 * int (*ndo_stop)(struct net_device *dev);
 *     This function is called when network device transistions to the down
 *     state.
 *
 * netdev_tx_t (*ndo_start_xmit)(struct sk_buff *skb,
 *                               struct net_device *dev);
 *	Called when a packet needs to be transmitted.
 *	Must return NETDEV_TX_OK , NETDEV_TX_BUSY.
 *        (can also return NETDEV_TX_LOCKED iff NETIF_F_LLTX)
 *	Required can not be NULL.
 *
 * u16 (*ndo_select_queue)(struct net_device *dev, struct sk_buff *skb);
 *	Called to decide which queue to when device supports multiple
 *	transmit queues.
 *
 * void (*ndo_change_rx_flags)(struct net_device *dev, int flags);
 *	This function is called to allow device receiver to make
 *	changes to configuration when multicast or promiscious is enabled.
 *
 * void (*ndo_set_rx_mode)(struct net_device *dev);
 *	This function is called device changes address list filtering.
 *	If driver handles unicast address filtering, it should set
 *	IFF_UNICAST_FLT to its priv_flags.
 *
 * int (*ndo_set_mac_address)(struct net_device *dev, void *addr);
 *	This function  is called when the Media Access Control address
 *	needs to be changed. If this interface is not defined, the
 *	mac address can not be changed.
 *
 * int (*ndo_validate_addr)(struct net_device *dev);
 *	Test if Media Access Control address is valid for the device.
 *
 * int (*ndo_do_ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd);
 *	Called when a user request an ioctl which can't be handled by
 *	the generic interface code. If not defined ioctl's return
 *	not supported error code.
 *
 * int (*ndo_set_config)(struct net_device *dev, struct ifmap *map);
 *	Used to set network devices bus interface parameters. This interface
 *	is retained for legacy reason, new devices should use the bus
 *	interface (PCI) for low level management.
 *
 * int (*ndo_change_mtu)(struct net_device *dev, int new_mtu);
 *	Called when a user wants to change the Maximum Transfer Unit
 *	of a device. If not defined, any request to change MTU will
 *	will return an error.
 *
 * void (*ndo_tx_timeout)(struct net_device *dev);
 *	Callback uses when the transmitter has not made any progress
 *	for dev->watchdog ticks.
 *
 * struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev,
 *                      struct rtnl_link_stats64 *storage);
 * struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);
 *	Called when a user wants to get the network device usage
 *	statistics. Drivers must do one of the following:
 *	1. Define @ndo_get_stats64 to fill in a zero-initialised
 *	   rtnl_link_stats64 structure passed by the caller.
 *	2. Define @ndo_get_stats to update a net_device_stats structure
 *	   (which should normally be dev->stats) and return a pointer to
 *	   it. The structure may be changed asynchronously only if each
 *	   field is written atomically.
 *	3. Update dev->stats asynchronously and atomically, and define
 *	   neither operation.
 *
 * int (*ndo_vlan_rx_add_vid)(struct net_device *dev, unsigned short vid);
 *	If device support VLAN filtering (dev->features & NETIF_F_HW_VLAN_FILTER)
 *	this function is called when a VLAN id is registered.
 *
 * int (*ndo_vlan_rx_kill_vid)(struct net_device *dev, unsigned short vid);
 *	If device support VLAN filtering (dev->features & NETIF_F_HW_VLAN_FILTER)
 *	this function is called when a VLAN id is unregistered.
 *
 * void (*ndo_poll_controller)(struct net_device *dev);
 *
 *	SR-IOV management functions.
 * int (*ndo_set_vf_mac)(struct net_device *dev, int vf, u8* mac);
 * int (*ndo_set_vf_vlan)(struct net_device *dev, int vf, u16 vlan, u8 qos);
 * int (*ndo_set_vf_tx_rate)(struct net_device *dev, int vf, int rate);
 * int (*ndo_set_vf_spoofchk)(struct net_device *dev, int vf, bool setting);
 * int (*ndo_get_vf_config)(struct net_device *dev,
 *			    int vf, struct ifla_vf_info *ivf);
 * int (*ndo_set_vf_port)(struct net_device *dev, int vf,
 *			  struct nlattr *port[]);
 * int (*ndo_get_vf_port)(struct net_device *dev, int vf, struct sk_buff *skb);
 * int (*ndo_setup_tc)(struct net_device *dev, u8 tc)
 * 	Called to setup 'tc' number of traffic classes in the net device. This
 * 	is always called from the stack with the rtnl lock held and netif tx
 * 	queues stopped. This allows the netdevice to perform queue management
 * 	safely.
 *
 *	Fiber Channel over Ethernet (FCoE) offload functions.
 * int (*ndo_fcoe_enable)(struct net_device *dev);
 *	Called when the FCoE protocol stack wants to start using LLD for FCoE
 *	so the underlying device can perform whatever needed configuration or
 *	initialization to support acceleration of FCoE traffic.
 *
 * int (*ndo_fcoe_disable)(struct net_device *dev);
 *	Called when the FCoE protocol stack wants to stop using LLD for FCoE
 *	so the underlying device can perform whatever needed clean-ups to
 *	stop supporting acceleration of FCoE traffic.
 *
 * int (*ndo_fcoe_ddp_setup)(struct net_device *dev, u16 xid,
 *			     struct scatterlist *sgl, unsigned int sgc);
 *	Called when the FCoE Initiator wants to initialize an I/O that
 *	is a possible candidate for Direct Data Placement (DDP). The LLD can
 *	perform necessary setup and returns 1 to indicate the device is set up
 *	successfully to perform DDP on this I/O, otherwise this returns 0.
 *
 * int (*ndo_fcoe_ddp_done)(struct net_device *dev,  u16 xid);
 *	Called when the FCoE Initiator/Target is done with the DDPed I/O as
 *	indicated by the FC exchange id 'xid', so the underlying device can
 *	clean up and reuse resources for later DDP requests.
 *
 * int (*ndo_fcoe_ddp_target)(struct net_device *dev, u16 xid,
 *			      struct scatterlist *sgl, unsigned int sgc);
 *	Called when the FCoE Target wants to initialize an I/O that
 *	is a possible candidate for Direct Data Placement (DDP). The LLD can
 *	perform necessary setup and returns 1 to indicate the device is set up
 *	successfully to perform DDP on this I/O, otherwise this returns 0.
 *
 * int (*ndo_fcoe_get_hbainfo)(struct net_device *dev,
 *			       struct netdev_fcoe_hbainfo *hbainfo);
 *	Called when the FCoE Protocol stack wants information on the underlying
 *	device. This information is utilized by the FCoE protocol stack to
 *	register attributes with Fiber Channel management service as per the
 *	FC-GS Fabric Device Management Information(FDMI) specification.
 *
 * int (*ndo_fcoe_get_wwn)(struct net_device *dev, u64 *wwn, int type);
 *	Called when the underlying device wants to override default World Wide
 *	Name (WWN) generation mechanism in FCoE protocol stack to pass its own
 *	World Wide Port Name (WWPN) or World Wide Node Name (WWNN) to the FCoE
 *	protocol stack to use.
 *
 *	RFS acceleration.
 * int (*ndo_rx_flow_steer)(struct net_device *dev, const struct sk_buff *skb,
 *			    u16 rxq_index, u32 flow_id);
 *	Set hardware filter for RFS.  rxq_index is the target queue index;
 *	flow_id is a flow ID to be passed to rps_may_expire_flow() later.
 *	Return the filter ID on success, or a negative error code.
 *
 *	Slave management functions (for bridge, bonding, etc).
 * int (*ndo_add_slave)(struct net_device *dev, struct net_device *slave_dev);
 *	Called to make another netdev an underling.
 *
 * int (*ndo_del_slave)(struct net_device *dev, struct net_device *slave_dev);
 *	Called to release previously enslaved netdev.
 *
 *      Feature/offload setting functions.
 * netdev_features_t (*ndo_fix_features)(struct net_device *dev,
 *		netdev_features_t features);
 *	Adjusts the requested feature flags according to device-specific
 *	constraints, and returns the resulting flags. Must not modify
 *	the device state.
 *
 * int (*ndo_set_features)(struct net_device *dev, netdev_features_t features);
 *	Called to update device configuration to new features. Passed
 *	feature set might be less than what was returned by ndo_fix_features()).
 *	Must return >0 or -errno if it changed dev->features itself.
 *
 * int (*ndo_fdb_add)(struct ndmsg *ndm, struct nlattr *tb[],
 *		      struct net_device *dev,
 *		      const unsigned char *addr, u16 flags)
 *	Adds an FDB entry to dev for addr.
 * int (*ndo_fdb_del)(struct ndmsg *ndm, struct nlattr *tb[],
 *		      struct net_device *dev,
 *		      const unsigned char *addr)
 *	Deletes the FDB entry from dev coresponding to addr.
 * int (*ndo_fdb_dump)(struct sk_buff *skb, struct netlink_callback *cb,
 *		       struct net_device *dev, int idx)
 *	Used to add FDB entries to dump requests. Implementers should add
 *	entries to skb and update idx with the number of entries.
 *
 * int (*ndo_bridge_setlink)(struct net_device *dev, struct nlmsghdr *nlh)
 * int (*ndo_bridge_getlink)(struct sk_buff *skb, u32 pid, u32 seq,
 *			     struct net_device *dev)
 *
 * int (*ndo_change_carrier)(struct net_device *dev, bool new_carrier);
 *	Called to change device carrier. Soft-devices (like dummy, team, etc)
 *	which do not represent real hardware may define this to allow their
 *	userspace components to manage their virtual carrier state. Devices
 *	that determine carrier state from physical hardware properties (eg
 *	network cables) or protocol-dependent mechanisms (eg
 *	USB_CDC_NOTIFY_NETWORK_CONNECTION) should NOT implement this function.
 */
struct net_device_ops {
	int			(*ndo_init)(struct net_device *dev);
	void			(*ndo_uninit)(struct net_device *dev);
	int			(*ndo_open)(struct net_device *dev);
	int			(*ndo_stop)(struct net_device *dev);
	netdev_tx_t		(*ndo_start_xmit) (struct sk_buff *skb,
						   struct net_device *dev);
	u16			(*ndo_select_queue)(struct net_device *dev,
						    struct sk_buff *skb);
	void			(*ndo_change_rx_flags)(struct net_device *dev,
						       int flags);
	void			(*ndo_set_rx_mode)(struct net_device *dev);
	int			(*ndo_set_mac_address)(struct net_device *dev,
						       void *addr);
	int			(*ndo_validate_addr)(struct net_device *dev);
	int			(*ndo_do_ioctl)(struct net_device *dev,
					        struct ifreq *ifr, int cmd);
	int			(*ndo_set_config)(struct net_device *dev,
					          struct ifmap *map);
	int			(*ndo_change_mtu)(struct net_device *dev,
						  int new_mtu);
	int			(*ndo_neigh_setup)(struct net_device *dev,
						   struct neigh_parms *);
	void			(*ndo_tx_timeout) (struct net_device *dev);

	struct rtnl_link_stats64* (*ndo_get_stats64)(struct net_device *dev,
						     struct rtnl_link_stats64 *storage);
	struct net_device_stats* (*ndo_get_stats)(struct net_device *dev);

	int			(*ndo_vlan_rx_add_vid)(struct net_device *dev,
						       unsigned short vid);
	int			(*ndo_vlan_rx_kill_vid)(struct net_device *dev,
						        unsigned short vid);
#ifdef CONFIG_NET_POLL_CONTROLLER
	void                    (*ndo_poll_controller)(struct net_device *dev);
	int			(*ndo_netpoll_setup)(struct net_device *dev,
						     struct netpoll_info *info,
						     gfp_t gfp);
	void			(*ndo_netpoll_cleanup)(struct net_device *dev);
#endif
	int			(*ndo_set_vf_mac)(struct net_device *dev,
						  int queue, u8 *mac);
	int			(*ndo_set_vf_vlan)(struct net_device *dev,
						   int queue, u16 vlan, u8 qos);
	int			(*ndo_set_vf_tx_rate)(struct net_device *dev,
						      int vf, int rate);
	int			(*ndo_set_vf_spoofchk)(struct net_device *dev,
						       int vf, bool setting);
	int			(*ndo_get_vf_config)(struct net_device *dev,
						     int vf,
						     struct ifla_vf_info *ivf);
	int			(*ndo_set_vf_port)(struct net_device *dev,
						   int vf,
						   struct nlattr *port[]);
	int			(*ndo_get_vf_port)(struct net_device *dev,
						   int vf, struct sk_buff *skb);
	int			(*ndo_setup_tc)(struct net_device *dev, u8 tc);
#if IS_ENABLED(CONFIG_FCOE)
	int			(*ndo_fcoe_enable)(struct net_device *dev);
	int			(*ndo_fcoe_disable)(struct net_device *dev);
	int			(*ndo_fcoe_ddp_setup)(struct net_device *dev,
						      u16 xid,
						      struct scatterlist *sgl,
						      unsigned int sgc);
	int			(*ndo_fcoe_ddp_done)(struct net_device *dev,
						     u16 xid);
	int			(*ndo_fcoe_ddp_target)(struct net_device *dev,
						       u16 xid,
						       struct scatterlist *sgl,
						       unsigned int sgc);
	int			(*ndo_fcoe_get_hbainfo)(struct net_device *dev,
							struct netdev_fcoe_hbainfo *hbainfo);
#endif

#if IS_ENABLED(CONFIG_LIBFCOE)
#define NETDEV_FCOE_WWNN 0
#define NETDEV_FCOE_WWPN 1
	int			(*ndo_fcoe_get_wwn)(struct net_device *dev,
						    u64 *wwn, int type);
#endif