Deleted Added
full compact
hv_kvp.c (307455) hv_kvp.c (307456)
1/*-
2 * Copyright (c) 2014,2016 Microsoft Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26
27/*
28 * Author: Sainath Varanasi.
29 * Date: 4/2012
30 * Email: bsdic@microsoft.com
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2014,2016 Microsoft Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26
27/*
28 * Author: Sainath Varanasi.
29 * Date: 4/2012
30 * Email: bsdic@microsoft.com
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/utilities/hv_kvp.c 307455 2016-10-17 02:30:45Z sephe $");
34__FBSDID("$FreeBSD: stable/11/sys/dev/hyperv/utilities/hv_kvp.c 307456 2016-10-17 02:34:13Z sephe $");
35
36#include <sys/param.h>
37#include <sys/kernel.h>
38#include <sys/conf.h>
39#include <sys/uio.h>
40#include <sys/bus.h>
41#include <sys/malloc.h>
42#include <sys/mbuf.h>

--- 527 unchanged lines hidden (view full) ---

570 &sc->rcv_buf[sizeof(struct hv_vmbus_pipe_hdr)];
571
572 if (error)
573 error = HV_KVP_E_FAIL;
574
575 hv_icmsg_hdrp->status = error;
576 hv_icmsg_hdrp->icflags = HV_ICMSGHDRFLAG_TRANSACTION | HV_ICMSGHDRFLAG_RESPONSE;
577
35
36#include <sys/param.h>
37#include <sys/kernel.h>
38#include <sys/conf.h>
39#include <sys/uio.h>
40#include <sys/bus.h>
41#include <sys/malloc.h>
42#include <sys/mbuf.h>

--- 527 unchanged lines hidden (view full) ---

570 &sc->rcv_buf[sizeof(struct hv_vmbus_pipe_hdr)];
571
572 if (error)
573 error = HV_KVP_E_FAIL;
574
575 hv_icmsg_hdrp->status = error;
576 hv_icmsg_hdrp->icflags = HV_ICMSGHDRFLAG_TRANSACTION | HV_ICMSGHDRFLAG_RESPONSE;
577
578 error = hv_vmbus_channel_send_packet(sc->util_sc.channel,
579 sc->rcv_buf,
580 sc->host_msg_len, sc->host_msg_id,
581 VMBUS_CHANPKT_TYPE_INBAND, 0);
582
578 error = vmbus_chan_send(sc->util_sc.channel,
579 VMBUS_CHANPKT_TYPE_INBAND, 0, sc->rcv_buf, sc->host_msg_len,
580 sc->host_msg_id);
583 if (error)
584 hv_kvp_log_info("%s: hv_kvp_respond_host: sendpacket error:%d\n",
585 __func__, error);
586}
587
588
589/*
590 * This is the main kvp kernel process that interacts with both user daemon

--- 359 unchanged lines hidden ---
581 if (error)
582 hv_kvp_log_info("%s: hv_kvp_respond_host: sendpacket error:%d\n",
583 __func__, error);
584}
585
586
587/*
588 * This is the main kvp kernel process that interacts with both user daemon

--- 359 unchanged lines hidden ---