Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
07c90427
Commit
07c90427
authored
Mar 25, 2003
by
Chas Williams
Committed by
David S. Miller
Mar 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: Fix total_len calculation in IPHASE driver.
parent
3a118194
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drivers/atm/iphase.c
drivers/atm/iphase.c
+2
-4
No files found.
drivers/atm/iphase.c
View file @
07c90427
...
...
@@ -2893,7 +2893,7 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
struct
tx_buf_desc
*
buf_desc_ptr
;
int
desc
;
int
comp_code
;
int
total_len
,
pad
,
last
;
int
total_len
;
struct
cpcs_trailer
*
trailer
;
struct
ia_vcc
*
iavcc
;
...
...
@@ -2975,9 +2975,7 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
/* Figure out the exact length of the packet and padding required to
make it aligned on a 48 byte boundary. */
total_len
=
skb
->
len
+
sizeof
(
struct
cpcs_trailer
);
last
=
total_len
-
(
total_len
/
48
)
*
48
;
pad
=
48
-
last
;
total_len
=
pad
+
total_len
;
total_len
=
((
total_len
+
47
)
/
48
)
*
48
;
IF_TX
(
printk
(
"ia packet len:%d padding:%d
\n
"
,
total_len
,
pad
);)
/* Put the packet in a tx buffer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment