Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197461
b: refs/heads/master
c: 31c21b7
h: refs/heads/master
i:
  197459: 5d2949f
v: v3
  • Loading branch information
Charles Clément authored and Greg Kroah-Hartman committed May 18, 2010
1 parent d0869c8 commit c3ea73e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 855181f51558dca10c8acc27f1f81e0809ddf057
refs/heads/master: 31c21b779181140e0b7eadadbd5e0f518e131488
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ BOOL device_dma0_xmit(PSDevice pDevice, struct sk_buff *skb, UINT uNodeIndex) {
cbFrameBodySize = skb->len - ETH_HLEN;

// 802.1H
if (ntohs(pDevice->sTxEthHeader.wType) > MAX_DATA_LEN) {
if (ntohs(pDevice->sTxEthHeader.wType) > ETH_DATA_LEN) {
cbFrameBodySize += 8;
}
uMACfragNum = cbGetFragCount(pDevice, pTransmitKey, cbFrameBodySize, &pDevice->sTxEthHeader);
Expand Down Expand Up @@ -2359,7 +2359,7 @@ static int device_xmit(struct sk_buff *skb, struct net_device *dev) {
memcpy(pDevice->sTxEthHeader.abyDstAddr, (PBYTE)(skb->data), ETH_HLEN);
cbFrameBodySize = skb->len - ETH_HLEN;
// 802.1H
if (ntohs(pDevice->sTxEthHeader.wType) > MAX_DATA_LEN) {
if (ntohs(pDevice->sTxEthHeader.wType) > ETH_DATA_LEN) {
cbFrameBodySize += 8;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ s_cbFillTxBufHead (


// 802.1H
if (ntohs(psEthHeader->wType) > MAX_DATA_LEN) {
if (ntohs(psEthHeader->wType) > ETH_DATA_LEN) {
if ((psEthHeader->wType == TYPE_PKT_IPX) ||
(psEthHeader->wType == cpu_to_le16(0xF380))) {
memcpy((PBYTE) (pbyPayloadHead), &pDevice->abySNAP_Bridgetunnel[0], 6);
Expand Down Expand Up @@ -1986,7 +1986,7 @@ s_cbFillTxBufHead (
}

// 802.1H
if (ntohs(psEthHeader->wType) > MAX_DATA_LEN) {
if (ntohs(psEthHeader->wType) > ETH_DATA_LEN) {
if ((psEthHeader->wType == TYPE_PKT_IPX) ||
(psEthHeader->wType == cpu_to_le16(0xF380))) {
memcpy((PBYTE) (pbyPayloadHead), &pDevice->abySNAP_Bridgetunnel[0], 6);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/vt6655/tether.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@
// Ethernet address string length

#define MIN_DATA_LEN 46 // min data length
#define MAX_DATA_LEN 1500 // max data length

#define MIN_PACKET_LEN (MIN_DATA_LEN + ETH_HLEN)
// 60
// min total packet length (tx)
#define MAX_PACKET_LEN (MAX_DATA_LEN + ETH_HLEN)
#define MAX_PACKET_LEN (ETH_DATA_LEN + ETH_HLEN)
// 1514
// max total packet length (tx)

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/wroute.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ BOOL ROUTEbRelay (PSDevice pDevice, PBYTE pbySkbData, UINT uDataLen, UINT uNodeI

cbFrameBodySize = uDataLen - ETH_HLEN;

if (ntohs(pDevice->sTxEthHeader.wType) > MAX_DATA_LEN) {
if (ntohs(pDevice->sTxEthHeader.wType) > ETH_DATA_LEN) {
cbFrameBodySize += 8;
}

Expand Down

0 comments on commit c3ea73e

Please sign in to comment.