Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133831
b: refs/heads/master
c: 69b3aa6
h: refs/heads/master
i:
  133829: 1d32491
  133827: 85e07f9
  133823: 5e4db9f
v: v3
  • Loading branch information
Frank Blaschka authored and David S. Miller committed Jan 21, 2009
1 parent 481f1c4 commit 9ad12b3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 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: 0e0b46d80f8768c465c14994aba91ee714b0d7b7
refs/heads/master: 69b3aa609cab34928931b86632316d065ba17ba3
24 changes: 18 additions & 6 deletions trunk/drivers/s390/net/ctcm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,12 +1099,24 @@ static void ctcm_free_netdevice(struct net_device *dev)

struct mpc_group *ctcmpc_init_mpc_group(struct ctcm_priv *priv);

static const struct net_device_ops ctcm_netdev_ops = {
.ndo_open = ctcm_open,
.ndo_stop = ctcm_close,
.ndo_get_stats = ctcm_stats,
.ndo_change_mtu = ctcm_change_mtu,
.ndo_start_xmit = ctcm_tx,
};

static const struct net_device_ops ctcm_mpc_netdev_ops = {
.ndo_open = ctcm_open,
.ndo_stop = ctcm_close,
.ndo_get_stats = ctcm_stats,
.ndo_change_mtu = ctcm_change_mtu,
.ndo_start_xmit = ctcmpc_tx,
};

void static ctcm_dev_setup(struct net_device *dev)
{
dev->open = ctcm_open;
dev->stop = ctcm_close;
dev->get_stats = ctcm_stats;
dev->change_mtu = ctcm_change_mtu;
dev->type = ARPHRD_SLIP;
dev->tx_queue_len = 100;
dev->flags = IFF_POINTOPOINT | IFF_NOARP;
Expand Down Expand Up @@ -1157,12 +1169,12 @@ static struct net_device *ctcm_init_netdevice(struct ctcm_priv *priv)
dev->mtu = MPC_BUFSIZE_DEFAULT -
TH_HEADER_LENGTH - PDU_HEADER_LENGTH;

dev->hard_start_xmit = ctcmpc_tx;
dev->netdev_ops = &ctcm_mpc_netdev_ops;
dev->hard_header_len = TH_HEADER_LENGTH + PDU_HEADER_LENGTH;
priv->buffer_size = MPC_BUFSIZE_DEFAULT;
} else {
dev->mtu = CTCM_BUFSIZE_DEFAULT - LL_HEADER_LENGTH - 2;
dev->hard_start_xmit = ctcm_tx;
dev->netdev_ops = &ctcm_netdev_ops;
dev->hard_header_len = LL_HEADER_LENGTH + 2;
}

Expand Down

0 comments on commit 9ad12b3

Please sign in to comment.