From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Taku Izumi <izumi.taku@jp.fujitsu.com>,
netdev@vger.kernel.org, davem@davemloft.net
Cc: platform-driver-x86@vger.kernel.org, dvhart@infradead.org,
rkhan@redhat.com, alexander.h.duyck@redhat.com,
linux-acpi@vger.kernel.org, joe@perches.com,
stephen@networkplumber.org, yasu.isimatu@gmail.com
Subject: Re: [PATCH v2.1 21/22] fjes: handle receive cancellation request interrupt
Date: Thu, 23 Jul 2015 16:06:01 +0300 [thread overview]
Message-ID: <55B0E6B9.3070301@cogentembedded.com> (raw)
In-Reply-To: <1437610236-12490-21-git-send-email-izumi.taku@jp.fujitsu.com>
Hello.
On 7/23/2015 3:10 AM, Taku Izumi wrote:
> This patch adds implementation of handling IRQ
> of other receiver's receive cancellation request.
> Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
> ---
> drivers/net/fjes/fjes_main.c | 79 ++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 79 insertions(+)
>
> diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c
> index faaf2ed..b21ad68 100644
> --- a/drivers/net/fjes/fjes_main.c
> +++ b/drivers/net/fjes/fjes_main.c
> @@ -822,6 +822,75 @@ static int fjes_vlan_rx_kill_vid(struct net_device *netdev,
> return 0;
> }
>
> +static void fjes_txrx_stop_req_irq(struct fjes_adapter *adapter,
> + int src_epid)
> +{
> + struct fjes_hw *hw = &adapter->hw;
> + enum ep_partner_status status;
> +
> + status = fjes_hw_get_partner_ep_status(hw, src_epid);
> + switch (status) {
> + case EP_PARTNER_UNSHARE:
> + default:
> + break;
> + case EP_PARTNER_COMPLETE:
> + break;
Why this *case* isn't merged with the above ones?
> + case EP_PARTNER_WAITING:
> + if (src_epid < hw->my_epid) {
> + hw->ep_shm_info[src_epid].tx.info->v1i.rx_status |=
> + FJES_RX_STOP_REQ_DONE;
> +
> + clear_bit(src_epid, &hw->txrx_stop_req_bit);
> + set_bit(src_epid, &adapter->unshare_watch_bitmask);
> +
> + if (!work_pending(&adapter->unshare_watch_task))
> + queue_work(adapter->control_wq,
> + &adapter->unshare_watch_task);
> + }
> + break;
> + case EP_PARTNER_SHARED:
> + if (hw->ep_shm_info[src_epid].rx.info->v1i.rx_status
> + & FJES_RX_STOP_REQ_REQUEST) {
Please leave the & operator on the first line and start the second line
right under 'hw' on the first.
[...]
MBR, Sergei
next prev parent reply other threads:[~2015-07-23 13:06 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-23 0:09 [PATCH v2.1 00/22] FUJITSU Extended Socket network device driver Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 01/22] fjes: Introduce FUJITSU Extended Socket Network Device driver Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 02/22] fjes: Hardware initialization routine Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 03/22] fjes: Hardware cleanup routine Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 04/22] fjes: platform_driver's .probe and .remove routine Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 05/22] fjes: ES information acquisition routine Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 06/22] fjes: buffer address regist/unregistration routine Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 07/22] fjes: net_device_ops.ndo_open and .ndo_stop Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 08/22] fjes: net_device_ops.ndo_start_xmit Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 09/22] fjes: raise_intr_rxdata_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 10/22] fjes: tx_stall_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 11/22] fjes: NAPI polling function Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 12/22] fjes: net_device_ops.ndo_get_stats64 Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 13/22] fjes: net_device_ops.ndo_change_mtu Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 14/22] fjes: net_device_ops.ndo_tx_timeout Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 15/22] fjes: net_device_ops.ndo_vlan_rx_add/kill_vid Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 16/22] fjes: interrupt_watch_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 17/22] fjes: force_close_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 18/22] fjes: unshare_watch_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 19/22] fjes: update_zone_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 20/22] fjes: epstop_task Taku Izumi
2015-07-23 0:10 ` [PATCH v2.1 21/22] fjes: handle receive cancellation request interrupt Taku Izumi
2015-07-23 13:06 ` Sergei Shtylyov [this message]
2015-07-27 1:59 ` Izumi, Taku
2015-07-23 0:10 ` [PATCH v2.1 22/22] fjes: ethtool support Taku Izumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55B0E6B9.3070301@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=alexander.h.duyck@redhat.com \
--cc=davem@davemloft.net \
--cc=dvhart@infradead.org \
--cc=izumi.taku@jp.fujitsu.com \
--cc=joe@perches.com \
--cc=linux-acpi@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rkhan@redhat.com \
--cc=stephen@networkplumber.org \
--cc=yasu.isimatu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.